diff options
-rw-r--r-- | app/views/body/show.rhtml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/app/views/body/show.rhtml b/app/views/body/show.rhtml index 25692bcd3..cdb35a597 100644 --- a/app/views/body/show.rhtml +++ b/app/views/body/show.rhtml @@ -1,8 +1,19 @@ -<% @title = h(@public_body.name) + " (" + h(@public_body.short_name) + ")" %> +<% @title = h(@public_body.name) %> <h1><%=@title%></h1> -<p class="subtitle">Recent Freedom of Information requests to this public body</p> +<p class="subtitle"> +A public body in the UK, also called <%= h(@public_body.short_name) %> +</p> + +<% if @public_body.info_requests.empty? %> + <p>Nobody has made any Freedom of Information requests to this public body using this site.</p> + +<% else %> + <p>There have been <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> + made to this public body using this site.</p> + + <%= render :partial => 'request/request_listing', :locals => { :info_requests => @public_body.info_requests.sort { |a,b| b.created_at <=> a.created_at } } %> +<% end %> -<%= render :partial => 'request/request_listing', :locals => { :info_requests => @public_body.info_requests.sort { |a,b| b.created_at <=> a.created_at } } %> |