2012-03-01 17:33:46 +00:00
|
|
|
- content_for :submenu do
|
2013-01-31 16:26:49 +00:00
|
|
|
- act = action_name.to_sym; contr = controller_name.to_sym; treeish = @project.default_head(params[:treeish])
|
2012-03-23 17:36:37 +00:00
|
|
|
.left
|
|
|
|
.table-sort-left=image_tag visibility_icon(@project.visibility)
|
|
|
|
.table-sort-right=@project.name
|
2012-02-15 16:32:26 +00:00
|
|
|
%nav
|
|
|
|
%ul
|
2013-02-12 16:35:14 +00:00
|
|
|
%li= link_to t("project_menu.code"), tree_path(@project, treeish), :class => (act.in?([:show, :edit, :branches, :tags]) && contr.in?([:trees, :blobs]) || contr == :commits ? 'active' : nil)
|
2012-05-15 11:00:57 +01:00
|
|
|
- if @project.is_package and can?(:read, @project => BuildList)
|
2012-03-01 17:33:46 +00:00
|
|
|
%li= link_to t("project_menu.builds"), project_build_lists_path(@project), :class => (contr == :build_lists ? 'active' : nil)
|
2012-02-29 18:25:57 +00:00
|
|
|
- if @project.has_issues
|
2013-02-15 11:16:34 +00:00
|
|
|
%li= link_to t("project_menu.tracker", :count => @opened_issues_count), project_issues_path(@project), :class => (contr == :issues ? 'active' : nil)
|
|
|
|
%li=link_to t("project_menu.pull_requests", :count => @opened_pull_requests_count), project_pull_requests_path(@project), :class => (contr == :pull_requests ? 'active' : nil)
|
2012-02-29 18:25:57 +00:00
|
|
|
- if @project.has_wiki
|
2012-03-01 17:33:46 +00:00
|
|
|
%li= link_to t("project_menu.wiki"), project_wiki_index_path(@project), :class => (contr == :wiki ? 'active' : nil)
|
2012-08-03 14:15:29 +01:00
|
|
|
%li=# link_to t("project_menu.readme"), "#" #pending
|
2012-03-01 17:33:46 +00:00
|
|
|
- if can? :update, @project
|
2012-09-26 12:46:23 +01:00
|
|
|
%li= link_to t("project_menu.settings"), edit_project_path(@project), :class => (act == :edit && contr == :projects ? 'active' : nil)
|