_head.html.haml 839 Bytes
Newer Older
1
%ul.center-top-menu
2
  = nav_link(controller: [:commit, :commits]) do
3
    = link_to namespace_project_commits_path(@project.namespace, @project, current_ref) do
Phil Hughes's avatar
Phil Hughes committed
4
      Commits
5
      %span.badge= number_with_delimiter(@repository.commit_count)
6
  = nav_link(controller: :compare) do
7
    = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: current_ref) do
Douwe Maan's avatar
Douwe Maan committed
8
      Compare
9 10

  = nav_link(html_options: {class: branches_tab_class}) do
Vinnie Okada's avatar
Vinnie Okada committed
11
    = link_to namespace_project_branches_path(@project.namespace, @project) do
12
      Branches
13
      %span.badge.js-totalbranch-count= @repository.branches.size
14

15
  = nav_link(controller: [:tags, :releases]) do
Vinnie Okada's avatar
Vinnie Okada committed
16
    = link_to namespace_project_tags_path(@project.namespace, @project) do
17
      Tags
18
      %span.badge.js-totaltags-count= @repository.tags.length