aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/user/show.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/user/show.rhtml')
-rw-r--r--app/views/user/show.rhtml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml
index 8eef38adc..01f20ed71 100644
--- a/app/views/user/show.rhtml
+++ b/app/views/user/show.rhtml
@@ -14,7 +14,12 @@
<div class="single_user">
<h1><%=@title%></h1>
- <p class="subtitle">Joined WhatDoTheyKnow on <%= simple_date(@display_user.created_at) %></p>
+ <p class="subtitle">
+ Joined WhatDoTheyKnow on <%= simple_date(@display_user.created_at) %>
+ <% if !@user.nil? && @user.owns_every_request? %>
+ (<%= link_to "admin", user_admin_url(@display_user) %>)
+ <% end %>
+ </p>
<p>
<%= link_to "Send message to " + h(@display_user.name), contact_user_url(:id => @display_user.id) %>