BigW Consortium Gitlab

_head.html.haml 1.07 KB
Newer Older
1
%ul.nav.nav-tabs
2
  %li= render partial: 'shared/ref_switcher', locals: {destination: 'commits'}
3 4

  = nav_link(controller: [:commit, :commits]) do
5
    = link_to 'Commits', project_commits_path(@project, @repository.root_ref)
6
  = nav_link(controller: :compare) do
7
    = link_to 'Compare', project_compare_index_path(@project, from: @repository.root_ref, to: @ref || @repository.root_ref)
8 9

  = nav_link(html_options: {class: branches_tab_class}) do
10
    = link_to recent_project_branches_path(@project) do
11
      Branches
12
      %span.badge= @repository.branches.length
13

14 15
  = nav_link(controller: :tags) do
    = link_to project_tags_path(@project) do
16
      Tags
17
      %span.badge= @repository.tags.length
18

randx committed
19 20 21 22 23
  = nav_link(controller: :repositories, action: :stats) do
    = link_to stats_project_repository_path(@project) do
      Stats


24
  - if current_user && current_controller?(:commits) && current_user.private_token
25
    %li.pull-right.hidden-sm
26 27
      = link_to project_commits_path(@project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Feed" do
        %i.icon-rss