summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/show.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 16:31:40 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-23 17:11:38 +0200
commit8917ae39e3f2a75833908413bac209373cb013eb (patch)
tree016bad6191ce801c3e7cb3092bf604b3fdc94ca7 /app/views/projects/tree/show.html.haml
parent27289599e2e53bb27b897069c18b169fd3cb4cea (diff)
downloadgitlab-ce-8917ae39e3f2a75833908413bac209373cb013eb.tar.gz
Add atom link tag to every page that has one.
Diffstat (limited to 'app/views/projects/tree/show.html.haml')
-rw-r--r--app/views/projects/tree/show.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/tree/show.html.haml b/app/views/projects/tree/show.html.haml
index feca1453697..8f789efa122 100644
--- a/app/views/projects/tree/show.html.haml
+++ b/app/views/projects/tree/show.html.haml
@@ -1,3 +1,7 @@
+= content_for :meta_tags do
+ - if current_user
+ = auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.private_token), title: "Recent commits to #{@project.name}:#{@ref}")
+
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path