aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-01-02 18:22:08 +0000
committerfrancis <francis>2008-01-02 18:22:08 +0000
commitb458b7ca41e1e53534afcf37e71836f8c833703f (patch)
treea7942925c846ea5d06d5b74d425a373a22eded19
parent8aa07650c258427620285ca261edfed3ad511218 (diff)
Format tweaks
-rw-r--r--app/views/body/show.rhtml17
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 } } %>