aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-10-17 17:33:20 +0100
committerLouise Crow <louise.crow@gmail.com>2012-10-17 17:33:20 +0100
commit1e4fd7f4a76ea33d270912bbb9a4bf76cbd9d2a9 (patch)
tree7d6a1598e32cb27d3864cd219ee5fc9bedaf88d1 /app/views
parentefaa7c1e2e3aca7136e601dffe9fb246519356a1 (diff)
parentd21d9b9dd10a1379ecb686e339992d7790e4bd61 (diff)
Merge remote-tracking branch 'openaustralia_github/fix_count_inconsistencies' into develop
Diffstat (limited to 'app/views')
-rw-r--r--app/views/general/frontpage.rhtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/general/frontpage.rhtml b/app/views/general/frontpage.rhtml
index e2d74a5e2..7f25cdd14 100644
--- a/app/views/general/frontpage.rhtml
+++ b/app/views/general/frontpage.rhtml
@@ -15,7 +15,7 @@
<%= _("Search over<br/>
<strong>{{number_of_requests}} requests</strong> <span>and</span><br/>
<strong>{{number_of_authorities}} authorities</strong>",
- :number_of_requests => InfoRequest.count, :number_of_authorities => PublicBody.count) %>
+ :number_of_requests => InfoRequest.visible.count, :number_of_authorities => PublicBody.visible.count) %>
</h2>
<% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>
<div>
@@ -36,7 +36,7 @@
<div id="examples_0">
<h3><%= _("Who can I request information from?") %></h3>
<%= _("{{site_name}} covers requests to {{number_of_authorities}} authorities, including:",
- :site_name => site_name, :number_of_authorities => PublicBody.count) %>
+ :site_name => site_name, :number_of_authorities => PublicBody.visible.count) %>
<ul>
<% for popular_body in @popular_bodies %>
<li><%=public_body_link(popular_body)%>
@@ -59,7 +59,7 @@
<% end %>
</h3>
<%= _("{{site_name}} users have made {{number_of_requests}} requests, including:",
- :site_name => site_name, :number_of_requests => InfoRequest.count) %>
+ :site_name => site_name, :number_of_requests => InfoRequest.visible.count) %>
<ul>
<% for event in @request_events %>
<li>