2014-02-15 11:41:48 +00:00
|
|
|
%ul.nav.nav-tabs
|
2012-09-26 20:14:17 +00:00
|
|
|
= nav_link(controller: [:commit, :commits]) do
|
2015-05-09 20:25:46 +00:00
|
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref) do
|
2015-05-09 21:16:33 +00:00
|
|
|
= icon("history")
|
2015-03-26 21:35:10 +00:00
|
|
|
Commits
|
2015-05-14 15:30:23 +00:00
|
|
|
%span.badge= number_with_delimiter(@repository.commit_count)
|
2012-09-26 20:14:17 +00:00
|
|
|
= nav_link(controller: :compare) do
|
2015-05-09 21:16:33 +00:00
|
|
|
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref) do
|
|
|
|
= icon("exchange")
|
|
|
|
Compare
|
2012-09-26 20:14:17 +00:00
|
|
|
|
|
|
|
= nav_link(html_options: {class: branches_tab_class}) do
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to namespace_project_branches_path(@project.namespace, @project) do
|
2015-05-09 21:16:33 +00:00
|
|
|
= icon("code-fork")
|
2012-02-20 06:39:03 +00:00
|
|
|
Branches
|
2014-05-17 09:36:39 +00:00
|
|
|
%span.badge.js-totalbranch-count= @repository.branches.size
|
2012-02-20 06:39:03 +00:00
|
|
|
|
2013-07-16 20:12:52 +00:00
|
|
|
= nav_link(controller: :tags) do
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to namespace_project_tags_path(@project.namespace, @project) do
|
2015-05-09 21:16:33 +00:00
|
|
|
= icon("tags")
|
2012-02-20 06:39:03 +00:00
|
|
|
Tags
|
2014-08-17 14:21:31 +00:00
|
|
|
%span.badge.js-totaltags-count= @repository.tags.length
|