summaryrefslogtreecommitdiff
path: root/app/views/projects/show.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 16:57:01 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-23 17:11:39 +0200
commita6dfd065ca9de2e421425a5126c68bf8949ce110 (patch)
tree45eaaf341b8c746cc69b28f207544fa9fc7e421e /app/views/projects/show.html.haml
parent72b090b890fc438923b9bcb35d0461564f71cebc (diff)
downloadgitlab-ce-a6dfd065ca9de2e421425a5126c68bf8949ce110.tar.gz
Add atom feed for project activity.
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 864bda359b6..e9d4fdc96e1 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -1,3 +1,7 @@
+= content_for :meta_tags do
+ - if current_user
+ = auto_discovery_link_tag(:atom, namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), title: "#{@group.name} activity")
+
- if current_user && can?(current_user, :download_code, @project)
= render 'shared/no_ssh'
= render 'shared/no_password'
@@ -39,6 +43,14 @@
%i.fa.fa-angle-left
%section.col-md-9
= render "events/event_last_push", event: @last_push
+
+ - if current_user
+ %ul.nav.nav-pills.event_filter.pull-right
+ %li
+ = link_to namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), title: "Feed", class: 'rss-btn' do
+ %i.fa.fa-rss
+ News Feed
+
= render 'shared/event_filter'
%hr
.content_list