rosa-build/app/views/projects/wiki/_sidebar.html.haml

14 lines
667 B
Plaintext
Raw Normal View History

2012-02-17 11:13:54 +00:00
- act = action_name.intern
%aside
.admin-preferences
%ul
2014-01-21 04:51:49 +00:00
%li{class: ((act == :show and @name == 'Home') or act == :index) ? 'active' : ''}
= link_to t("wiki.home"), project_wiki_index_path(@project)
2014-01-21 04:51:49 +00:00
%li{class: (act == :pages) ? 'active' : ''}
= link_to t("wiki.pages"), pages_project_wiki_index_path(@project)
2014-01-21 04:51:49 +00:00
%li{class: (act == :wiki_history or act == :compare_wiki) ? 'active' : ''}
= link_to t("wiki.wiki_history"), history_project_wiki_index_path(@project)
2014-01-21 04:51:49 +00:00
%li{class: (act == :git) ? 'active' : ''}
= link_to t("wiki.git_access"), git_project_wiki_index_path(@project)
2012-02-17 11:13:54 +00:00
%br
= render 'searchbar'