Add settings tab to project. Move all project administration there
This commit is contained in:
parent
d2b882fae5
commit
5c4e74acc3
4 changed files with 29 additions and 29 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
.container
|
||||
%ul.main_menu
|
||||
= nav_link(html_options: {class: "home #{project_tab_class}"}) do
|
||||
= nav_link(path: 'projects#show', html_options: {class: "home"}) do
|
||||
= link_to project_path(@project), title: "Project" do
|
||||
%i.icon-home
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
|||
= nav_link(controller: %w(graph)) do
|
||||
= link_to "Network", project_graph_path(@project, @ref || @repository.root_ref)
|
||||
|
||||
- if @project.issues_enabled
|
||||
- if @project.issues_enabled
|
||||
= nav_link(controller: %w(issues milestones labels)) do
|
||||
= link_to url_for_project_issues do
|
||||
Issues
|
||||
|
@ -43,4 +43,9 @@
|
|||
= nav_link(controller: :wikis) do
|
||||
= link_to 'Wiki', project_wiki_path(@project, :index)
|
||||
|
||||
- if can? current_user, :admin_project, @project
|
||||
= nav_link(html_options: {class: "#{project_tab_class}"}) do
|
||||
= link_to edit_project_path(@project), class: "stat-tab tab " do
|
||||
Settings
|
||||
|
||||
.content= yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue