summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-02-28 12:50:57 -0800
committerMichael Kozono <mkozono@gmail.com>2017-02-28 12:50:57 -0800
commita2670ee06b05c1abf31c11972319c6a59ef6940a (patch)
tree618c159bac47314bd0861ac79538ae44a365a869 /app/views/users
parent05c8ec6cb85a3943b53cbd5757e7baea300dac68 (diff)
downloadgitlab-ce-a2670ee06b05c1abf31c11972319c6a59ef6940a.tar.gz
Show public RSS feeds to anonymous users
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/show.html.haml13
1 files changed, 6 insertions, 7 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index c130f3d9e17..af091f9ab88 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -24,13 +24,12 @@
= link_to new_abuse_report_path(user_id: @user.id, ref_url: request.referrer), class: 'btn btn-gray',
title: 'Report abuse', data: { toggle: 'tooltip', placement: 'bottom', container: 'body' } do
= icon('exclamation-circle')
- - if current_user
- = link_to user_path(@user, :atom, { private_token: current_user.private_token }), class: 'btn btn-gray' do
- = icon('rss')
- - if current_user.admin?
- = link_to [:admin, @user], class: 'btn btn-gray', title: 'View user in admin area',
- data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
- = icon('users')
+ = link_to user_path(@user, rss_url_options), class: 'btn btn-gray' do
+ = icon('rss')
+ - if current_user && current_user.admin?
+ = link_to [:admin, @user], class: 'btn btn-gray', title: 'View user in admin area',
+ data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
+ = icon('users')
.profile-header
.avatar-holder