diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/body/show.rhtml | 2 | ||||
-rw-r--r-- | app/views/request/show.rhtml | 2 | ||||
-rw-r--r-- | app/views/user/show.rhtml | 5 |
3 files changed, 3 insertions, 6 deletions
diff --git a/app/views/body/show.rhtml b/app/views/body/show.rhtml index 07cf3ce8e..c7196be85 100644 --- a/app/views/body/show.rhtml +++ b/app/views/body/show.rhtml @@ -10,7 +10,7 @@ <p class="subtitle"> <%=@public_body.type_of_authority(true)%> in the UK<% if not @public_body.short_name.empty? %>, also called <%= h(@public_body.short_name) %><% end %> (<%= link_to "home page", @public_body.calculated_home_page %>) -<% if !@user.nil? && @user.owns_every_request? %> +<% if !@user.nil? && @user.admin_page_links? %> (<%= link_to "admin", public_body_admin_url(@public_body) %>) <% end %> </p> diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml index 5e4b28d2b..b8bc288a2 100644 --- a/app/views/request/show.rhtml +++ b/app/views/request/show.rhtml @@ -45,7 +45,7 @@ <%= public_body_link(@info_request.public_body) %> by <%= user_link(@info_request.user) %> - <% if !@user.nil? && @user.owns_every_request? %> + <% if !@user.nil? && @user.admin_page_links? %> (<%= link_to "admin", request_admin_url(@info_request) %>) <% end %> </p> diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml index 834d8792a..59d834e0a 100644 --- a/app/views/user/show.rhtml +++ b/app/views/user/show.rhtml @@ -16,12 +16,9 @@ <h1><%=@title%></h1> <p class="subtitle"> Joined WhatDoTheyKnow on <%= simple_date(@display_user.created_at) %> - <% if !@user.nil? && @user.owns_every_request? %> + <% if !@user.nil? && @user.admin_page_links? %> (<%= link_to "admin", user_admin_url(@display_user) %>) <% end %> - <% if false # @display_user.owns_every_request? # should this be public? %> - and is a site admin. - <% end %> </p> <p> |