_project_head.html.haml 1.3 KB
Newer Older
randx's avatar
randx committed
1
%ul.nav.nav-tabs
2 3
  %li{ class: "#{'active' if current_page?(project_path(@project)) }" }
    = link_to project_path(@project), class: "activities-tab tab" do
4
      %i.icon-home
5
      Show
6 7
  %li{ class: " #{'active' if (controller.controller_name == "team_members") || current_page?(project_team_index_path(@project)) }" }
    = link_to project_team_index_path(@project), class: "team-tab tab" do
8
      %i.icon-user
9
      Team
10 11
  %li{ class: "#{'active' if current_page?(files_project_path(@project)) }" }
    = link_to files_project_path(@project), class: "files-tab tab " do
12
      Attachments
13 14
  %li{ class: " #{'active' if (controller.controller_name == "snippets") }" }
    = link_to project_snippets_path(@project), class: "snippets-tab tab" do
15
      Snippets
16 17

  - if can? current_user, :admin_project, @project
18
    %li.right{class: "#{'active' if controller.controller_name == "deploy_keys"}"}
19
      = link_to project_deploy_keys_path(@project) do
20 21
        %span
        Deploy Keys
22
    %li.right{class: "#{'active' if controller.controller_name == "hooks" }"}
23
      = link_to project_hooks_path(@project) do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
24 25
        %span
        Hooks
26 27
    %li.right{ class: "#{'active' if current_page?(edit_project_path(@project)) }" }
      = link_to edit_project_path(@project), class: "stat-tab tab " do
28
        %i.icon-edit
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
29
        Edit