diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-02-20 16:27:53 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:26:50 +0000 |
commit | c99a9c312177dae90c2d38f198d04cfd6cbf7991 (patch) | |
tree | d1a2873cba11f4572bb9fcb190e84b969272df1b | |
parent | d6d636af3da0192acd1419a1024f81e4e5f4b6e4 (diff) |
Remove eir header, only display h2 if it has contents.
-rw-r--r-- | app/views/public_body/show.html.erb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/public_body/show.html.erb b/app/views/public_body/show.html.erb index e9798f0a9..5a9c7b012 100644 --- a/app/views/public_body/show.html.erb +++ b/app/views/public_body/show.html.erb @@ -101,12 +101,11 @@ <% end %> <% end %> <% else %> - <h2 class="foi_results"> - <% if @public_body.eir_only? %> - <%= pluralize(@public_body.info_requests.size, "Environmental Information Regulations request made using this site") %> + <% unless @page_desc.blank? %> + <h2 class="foi_results"> + <%= @page_desc %> + </h2> <% end %> - <%= @page_desc %> - </h2> <a name="results"></a> <% if @public_body.info_requests.size > 4 %> |