From c872cf923a92f081a4a5354bce6b7b141c4fe931 Mon Sep 17 00:00:00 2001 From: gorm Date: Tue, 9 Jun 2015 23:09:25 +0200 Subject: =?UTF-8?q?=C3=A6=20=C3=B8=20&=20=C3=A5=20in=20body=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/views/public_body/_alphabet.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/views/public_body/_alphabet.html.erb (limited to 'lib') 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 %> -- cgit v1.2.3