[issue #171] Added ACL calls to project navigation.
This commit is contained in:
parent
2866014a6f
commit
50d27ad34d
|
@ -4,7 +4,8 @@
|
|||
%li= link_to t("layout.projects.new"), new_project_path
|
||||
%li= link_to t("layout.projects.show"), project_path(@project)
|
||||
%li.active= link_to t("layout.git.repositories.source"), project_repo_path(@project)
|
||||
%li= link_to t("layout.projects.build"), new_project_build_list_path(@project)
|
||||
- if can? :write, @project
|
||||
%li= link_to t("layout.projects.build"), new_project_build_list_path(@project)
|
||||
|
||||
%ul#git_submenu.sub-wat-cf.wat-cf
|
||||
%li= link_to t("layout.git.repositories.commits"), commits_path(@project, :treeish => @treeish)
|
||||
|
@ -25,4 +26,4 @@
|
|||
%span.current= tag.name
|
||||
- else
|
||||
= link_to tag.name, tree_path(@project, :treeish => tag.name)
|
||||
.clear
|
||||
.clear
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
%li= link_to t("layout.projects.new"), new_project_path
|
||||
%li.active= link_to t("layout.projects.show"), project_path(@project)
|
||||
%li= link_to t("layout.git.repositories.source"), project_repo_path(@project)
|
||||
%li= link_to t("layout.projects.build"), new_project_build_list_path(@project)
|
||||
- if can? :write, @project
|
||||
%li= link_to t("layout.projects.build"), new_project_build_list_path(@project)
|
||||
%li= link_to t("layout.projects.issues"), project_issues_path(@project)
|
||||
- if @project.has_wiki
|
||||
%li= link_to t("layout.projects.wiki"), project_wiki_index_path(@project)
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
%li= link_to t("layout.projects.new"), new_project_path
|
||||
%li= link_to t("layout.projects.show"), project_path(@project)
|
||||
%li= link_to t("layout.git.repositories.source"), project_repo_path(@project)
|
||||
%li= link_to t("layout.projects.build"), new_project_build_list_path(@project)
|
||||
- if can? :write, @project
|
||||
%li= link_to t("layout.projects.build"), new_project_build_list_path(@project)
|
||||
%li= link_to t("layout.projects.issues"), project_issues_path(@project)
|
||||
%li.active= link_to t("layout.projects.wiki"), project_wiki_index_path(@project)
|
||||
|
||||
|
|
Loading…
Reference in New Issue