debian-mirror-gitlab/app/views/projects/commits/_head.html.haml

18 lines
873 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
%ul.nav.nav-tabs
= nav_link(controller: [:commit, :commits]) do
2015-04-26 12:48:37 +05:30
= link_to namespace_project_commits_path(@project.namespace, @project, @repository.root_ref) do
Commits
%span.badge= number_with_precision(@repository.commit_count, precision: 0, delimiter: ',')
2014-09-02 18:07:02 +05:30
= nav_link(controller: :compare) do
2015-04-26 12:48:37 +05:30
= link_to 'Compare', namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref)
2014-09-02 18:07:02 +05:30
= nav_link(html_options: {class: branches_tab_class}) do
2015-04-26 12:48:37 +05:30
= link_to namespace_project_branches_path(@project.namespace, @project) do
2014-09-02 18:07:02 +05:30
Branches
%span.badge.js-totalbranch-count= @repository.branches.size
= nav_link(controller: :tags) do
2015-04-26 12:48:37 +05:30
= link_to namespace_project_tags_path(@project.namespace, @project) do
2014-09-02 18:07:02 +05:30
Tags
2015-04-26 12:48:37 +05:30
%span.badge.js-totaltags-count= @repository.tags.length