Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_project_head.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ebf0748c8a424ce4ac5a16119d9482bb68afbee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%ul.tabs
  %li{ :class => "#{'active' if current_page?(project_path(@project)) }" }
    = link_to project_path(@project), :class => "activities-tab tab" do 
      Show
  - if can? current_user, :admin_project, @project
    %li{ :class => "#{'active' if current_page?(edit_project_path(@project)) }" }
      = link_to edit_project_path(@project), :class => "stat-tab tab " do 
        Edit
 
  %li{ :class => " #{'active' if (controller.controller_name == "team_members") || current_page?(team_project_path(@project)) }" }
    = link_to team_project_path(@project), :class => "team-tab tab" do 
      Team
  %li{ :class => "#{'active' if current_page?(files_project_path(@project)) }" }
    = link_to files_project_path(@project), :class => "files-tab tab " do 
      Attachments
  %li{ :class => " #{'active' if (controller.controller_name == "snippets") }" }
    = link_to project_snippets_path(@project), :class => "snippets-tab tab" do 
      Snippets

  - if can? current_user, :admin_project, @project
    %li{:class => "#{'active' if controller.controller_name == "hooks" }"}
      = link_to project_hooks_path(@project) do 
        %span
        Hooks
    %li{:class => "#{'active' if controller.controller_name == "deploy_keys"}"}
      = link_to project_deploy_keys_path(@project) do 
        %span
        Deploy Keys