2012-02-15 16:32:26 +00:00
|
|
|
- content_for :sub_menu do
|
|
|
|
- act = action_name.to_sym
|
|
|
|
- contr = controller_name.to_sym
|
|
|
|
.left
|
|
|
|
= @project.name
|
|
|
|
%nav
|
|
|
|
%ul
|
2012-02-29 17:51:44 +00:00
|
|
|
%li= link_to t("project_menu.project"), project_path(@project), {:class => (act.in?([:show, :edit]) && contr.in?([:trees, :blobs])) ? 'active' : ''}
|
|
|
|
%li= link_to t("project_menu.commits"), commits_path(@project), {:class => (act.in?([:index, :show]) && contr == :commits) ? 'active' : ''}
|
2012-02-24 13:05:58 +00:00
|
|
|
- if @project.is_rpm
|
|
|
|
%li= link_to t("project_menu.builds"), project_build_lists_path(@project), {:class => (act == :index && contr == :builds) ? 'active' : ''}
|
2012-02-29 18:25:57 +00:00
|
|
|
- if @project.has_issues
|
|
|
|
%li= link_to t("project_menu.tracker"), project_issues_path(@project), {:class => (act == :index && contr == :issues) ? 'active' : ''}
|
|
|
|
- if @project.has_wiki
|
|
|
|
%li= link_to t("project_menu.wiki"), project_wiki_index_path(@project), {:class => contr == :wiki ? 'active' : ''}
|
2012-02-15 16:32:26 +00:00
|
|
|
%li= link_to t("project_menu.readme"), "#" #pending
|
|
|
|
%li= link_to t("project_menu.settings"), edit_project_path(@project), {:class => (act == :edit && contr == :projects) ? 'active' : ''}
|