2012-01-24 20:47:55 +00:00
|
|
|
- act = action_name.intern
|
2012-02-15 15:01:49 +00:00
|
|
|
.sub-menu
|
2012-02-24 21:37:22 +00:00
|
|
|
.left= @project.name
|
2012-02-15 15:01:49 +00:00
|
|
|
%nav
|
|
|
|
%ul
|
2014-01-21 04:51:49 +00:00
|
|
|
%li{class: ((act == :show and @name == 'Home') or act == :index) ? 'active' : ''}
|
2012-02-24 21:37:22 +00:00
|
|
|
= link_to t("wiki.home"), project_wiki_index_path(@project)
|
2014-01-21 04:51:49 +00:00
|
|
|
%li{class: (act == :pages) ? 'active' : ''}
|
2012-02-24 21:37:22 +00:00
|
|
|
= 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' : ''}
|
2012-02-24 21:37:22 +00:00
|
|
|
= 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' : ''}
|
2012-02-24 21:37:22 +00:00
|
|
|
= link_to t("wiki.git_access"), git_project_wiki_index_path(@project)
|