summaryrefslogtreecommitdiff
path: root/app/views/projects/commit/_ci_menu.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/commit/_ci_menu.html.haml')
-rw-r--r--app/views/projects/commit/_ci_menu.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/commit/_ci_menu.html.haml b/app/views/projects/commit/_ci_menu.html.haml
new file mode 100644
index 00000000000..76dc87a8824
--- /dev/null
+++ b/app/views/projects/commit/_ci_menu.html.haml
@@ -0,0 +1,9 @@
+%ul.center-top-menu.no-top.no-bottom.commit-ci-menu
+ = nav_link(path: 'commit#show') do
+ = link_to namespace_project_commit_path(@project.namespace, @project, @commit.id) do
+ Changes
+ %span.badge= @diffs.count
+ = nav_link(path: 'commit#builds') do
+ = link_to builds_namespace_project_commit_path(@project.namespace, @project, @commit.id) do
+ Builds
+ %span.badge= @builds.count(:id)