Skip to content

Commit

Permalink
Mask some links on the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Feb 25, 2017
1 parent 39cda7d commit e5dce78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/RonRonnement.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ a.edit_client_app,
-o-transform: rotate(-90deg) translate(-100%, -100%) translate(-3px, -5px);
transform: rotate(-90deg) translate(-100%, -100%) translate(-3px, -5px);
}
h1 + h2 { margin-top: -1.2em; }
h1 + * { margin-top: -2em; }

span.score {
color: #333;
Expand Down
5 changes: 1 addition & 4 deletions app/views/layouts/_site.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
%a(href="#contents") Aller au contenu
%a(href="#sidebar") Aller au menu
%ul
%li{class: ("active" if controller_name == "home")}= link_to "Accueil", '/', title: "Page d'accueil du site, personnalisable"
%li{class: ("active" if controller_name == "news" || controller_name == "sections")}= link_to "Dépêches", '/news', title: "Actualités, événements et autres nouveautés"
%li{class: ("active" if controller_name == "diaries" || (controller_name == "users" && action_name == "show"))}= link_to "Journaux", '/journaux', title: "Journaux personnels de nos visiteurs"
%li{class: ("active" if controller_name == "forums" || controller_name == "posts")}= link_to "Forums", '/forums', title: "Questions/réponses, petites annonces"
%li{class: ("active" if controller_name == "polls")}= link_to "Sondages", '/sondages', title: "Sondages proposées aux visiteurs du site"
%li{class: ("active" if controller_name == "wiki_pages" || controller_name == "wiki_versions")}= link_to "Wiki", '/wiki', title: "Pages wiki"
%li{class: ("active" if controller_name == "trackers")}= link_to "Suivi", '/suivi', title: "Suivi des suggestions et des bugs du site"
%li{class: ("active" if current_page?("/plan"))}= link_to "Plan", '/plan', title: "Plan du site, aide, flux Atom, etc."
%li{class: ("active" if current_page?("/redaction"))}= link_to "Rédaction", '/redaction', title: "Participez à la rédaction des dépêches"
= form_tag '/recherche', method: :get do
<label for="query" id="label_query">Recherche :</label>
<input id="query" name="q" type="search" placeholder="Rechercher" />
Expand Down
2 changes: 0 additions & 2 deletions app/views/redaction/_box.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#redaction_box.box
%h1
= link_to "Rédaction", '/redaction'
%p
= link_to "Tribune de rédaction", '/redaction'
%ul
= list_of News.draft.sorted.limit(10) do |news|
- if news.node.board_status(current_account) == :new_board
Expand Down

0 comments on commit e5dce78

Please sign in to comment.