BigW Consortium Gitlab

_head.html.haml 978 Bytes
Newer Older
1
%ul.nav-links
2
  = nav_link(controller: [:commit, :commits]) do
3
    = link_to namespace_project_commits_path(@project.namespace, @project, current_ref) do
4
      Commits
5
      %span.badge= number_with_delimiter(@repository.commit_count)
6

7 8 9
  = nav_link(controller: %w(network)) do
    = link_to namespace_project_network_path(@project.namespace, @project, current_ref) do
      Network
10

11
  = nav_link(controller: :compare) do
12
    = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: current_ref) do
Douwe Maan committed
13
      Compare
14 15

  = nav_link(html_options: {class: branches_tab_class}) do
Vinnie Okada committed
16
    = link_to namespace_project_branches_path(@project.namespace, @project) do
17
      Branches
18
      %span.badge.js-totalbranch-count= @repository.branch_count
19

20
  = nav_link(controller: [:tags, :releases]) do
Vinnie Okada committed
21
    = link_to namespace_project_tags_path(@project.namespace, @project) do
22
      Tags
23
      %span.badge.js-totaltags-count= @repository.tag_count