aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/views/public_body/_alphabet.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/views/public_body/_alphabet.html.erb b/lib/views/public_body/_alphabet.html.erb
new file mode 100644
index 0000000..d4c25fd
--- /dev/null
+++ b/lib/views/public_body/_alphabet.html.erb
@@ -0,0 +1,7 @@
+<%- "A".upto("Z") do |l| -%>
+ <%= link_to_unless (@tag == l), l, list_public_bodies_path(:tag => l.downcase) %>
+<% end %>
+
+<%- ['Æ', 'Ø', 'Å'].each do |l| -%>
+ <%= link_to_unless (@tag == l), l, list_public_bodies_path(:tag => l.downcase) %>
+<% end %>