summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-14 19:28:29 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-14 19:28:29 +0200
commit5c4e74acc32f2afefcb8ad3a4cbbcd7122e7f0bf (patch)
tree7084e6202471bc37508d9c8b9e9a2eee024cb058 /app/views/projects
parentd2b882fae5dcb9d4072cff9f1d271d378def26c2 (diff)
downloadgitlab-ce-5c4e74acc32f2afefcb8ad3a4cbbcd7122e7f0bf.tar.gz
Add settings tab to project. Move all project administration there
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/_project_head.html.haml46
-rw-r--r--app/views/projects/show.html.haml1
2 files changed, 21 insertions, 26 deletions
diff --git a/app/views/projects/_project_head.html.haml b/app/views/projects/_project_head.html.haml
index b8c88853a62..bdea0269643 100644
--- a/app/views/projects/_project_head.html.haml
+++ b/app/views/projects/_project_head.html.haml
@@ -1,31 +1,27 @@
%ul.nav.nav-tabs
- = nav_link(path: 'projects#show') do
- = link_to project_path(@project), class: "activities-tab tab" do
- %i.icon-home
- Show
+ = nav_link(path: 'projects#edit') do
+ = link_to edit_project_path(@project), class: "stat-tab tab " do
+ %i.icon-edit
+ Edit
= nav_link(controller: [:team_members, :teams]) do
= link_to project_team_index_path(@project), class: "team-tab tab" do
%i.icon-user
Team
- = nav_link(path: 'projects#files') do
- = link_to 'Attachments', files_project_path(@project), class: "files-tab tab"
- = nav_link(controller: :snippets) do
- = link_to 'Snippets', project_snippets_path(@project), class: "snippets-tab tab"
+ = nav_link(controller: :deploy_keys) do
+ = link_to project_deploy_keys_path(@project) do
+ %span
+ Deploy Keys
+ = nav_link(controller: :hooks) do
+ = link_to project_hooks_path(@project) do
+ %span
+ Hooks
+ = nav_link(controller: :services) do
+ = link_to project_services_path(@project) do
+ %span
+ Services
+
+ -#= nav_link(path: 'projects#files') do
+ -#= link_to 'Attachments', files_project_path(@project), class: "files-tab tab"
+ -#= nav_link(controller: :snippets) do
+ -#= link_to 'Snippets', project_snippets_path(@project), class: "snippets-tab tab"
- - if can? current_user, :admin_project, @project
- = nav_link(controller: :deploy_keys, html_options: {class: 'pull-right'}) do
- = link_to project_deploy_keys_path(@project) do
- %span
- Deploy Keys
- = nav_link(controller: :hooks, html_options: {class: 'pull-right'}) do
- = link_to project_hooks_path(@project) do
- %span
- Hooks
- = nav_link(controller: :services, html_options: {class: 'pull-right'}) do
- = link_to project_services_path(@project) do
- %span
- Services
- = nav_link(path: 'projects#edit', html_options: {class: 'pull-right'}) do
- = link_to edit_project_path(@project), class: "stat-tab tab " do
- %i.icon-edit
- Edit
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 861930cab35..824d4daf698 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -1,4 +1,3 @@
-= render "project_head"
= render 'clone_panel'
= render "events/event_last_push", event: @last_push