aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2012-10-02 07:53:44 +1000
committerMatthew Landauer <matthew@openaustralia.org>2012-10-02 07:53:44 +1000
commit848df48c8d0cbf5c053c263397c68c5ee8b5dd21 (patch)
tree43442c8caef8ba26e08c7fafab8e03467047f17a
parentbe96333dafd0fa0623ca4495237c8c6fa5457c14 (diff)
Extract partial to make it easier to override in theme
-rw-r--r--app/views/public_body/_list_sidebar_extra.rhtml6
-rw-r--r--app/views/public_body/list.rhtml7
2 files changed, 7 insertions, 6 deletions
diff --git a/app/views/public_body/_list_sidebar_extra.rhtml b/app/views/public_body/_list_sidebar_extra.rhtml
new file mode 100644
index 000000000..6857a7eb5
--- /dev/null
+++ b/app/views/public_body/_list_sidebar_extra.rhtml
@@ -0,0 +1,6 @@
+<p>
+ <%= _('<a href="%s">Are we missing a public authority?</a>') % [help_requesting_path + '#missing_body'] %>
+</p>
+<p>
+ <%= link_to _('List of all authorities (CSV)'), all_public_bodies_csv_url() %>
+</p>
diff --git a/app/views/public_body/list.rhtml b/app/views/public_body/list.rhtml
index a66a7f8fd..1277e6a5a 100644
--- a/app/views/public_body/list.rhtml
+++ b/app/views/public_body/list.rhtml
@@ -25,12 +25,7 @@
<% if not first_row %>
</ul>
<% end %>
- <p>
- <%= _('<a href="%s">Are we missing a public authority?</a>') % [help_requesting_path + '#missing_body'] %>
- </p>
- <p>
- <%= link_to _('List of all authorities (CSV)'), all_public_bodies_csv_url() %>
- </p>
+ <%= render :partial => "list_sidebar_extra" %>
</div>
<% @title = @description.empty? ? _("Public authorities") : _("Public authorities - {{description}}", :description => @description) %>