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

24 lines
987 B
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
%ul.center-top-menu
2014-09-02 18:07:02 +05:30
= nav_link(controller: [:commit, :commits]) do
2015-09-25 12:07:36 +05:30
= link_to namespace_project_commits_path(@project.namespace, @project, current_ref) do
2015-04-26 12:48:37 +05:30
Commits
2015-09-11 14:41:01 +05:30
%span.badge= number_with_delimiter(@repository.commit_count)
2015-12-23 02:04:40 +05:30
= nav_link(controller: %w(network)) do
= link_to namespace_project_network_path(@project.namespace, @project, current_ref) do
Network
2014-09-02 18:07:02 +05:30
= nav_link(controller: :compare) do
2015-09-25 12:07:36 +05:30
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: current_ref) do
2015-09-11 14:41:01 +05:30
Compare
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
2015-11-26 14:37:03 +05:30
= nav_link(controller: [:tags, :releases]) 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