aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-02-12 17:37:37 +0000
committerfrancis <francis>2009-02-12 17:37:37 +0000
commitec1e7a17a24c473aa2f5c74e1ef3d89651695f3e (patch)
treee021c4fbd25b1c6a4994c88ecb2b5f15c28c8997
parent571d721c536409b9993d0abb80fdd195b9154cdb (diff)
Make tags links
-rw-r--r--app/views/admin_public_body/show.rhtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/admin_public_body/show.rhtml b/app/views/admin_public_body/show.rhtml
index 483ac665a..363586fb3 100644
--- a/app/views/admin_public_body/show.rhtml
+++ b/app/views/admin_public_body/show.rhtml
@@ -24,7 +24,10 @@
<% else %>
*unknown*
<% end %>
-<br/><b>Tags:</b> <%=h @public_body.tag_string %>
+<br/><b>Tags:</b> <%= @public_body.public_body_tags.map { |t|
+ link_to(h(t.name), list_public_bodies_url(:tag => t.name)) +
+ ' (<a href="' + admin_url('body/list') + "?query=" + h(t.name) + '">admin</a>)' }.join(' ') %>
+
<br/>
</p>