diff options
-rw-r--r-- | app/views/body/_alphabet.rhtml | 3 | ||||
-rw-r--r-- | app/views/body/list.rhtml | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/app/views/body/_alphabet.rhtml b/app/views/body/_alphabet.rhtml new file mode 100644 index 000000000..e2dc09927 --- /dev/null +++ b/app/views/body/_alphabet.rhtml @@ -0,0 +1,3 @@ +<% "A".upto("Z") do |l| -%> + <%= link_to_unless (@tag == l), l, list_public_bodies_url(:tag => l) %> +<% end %> diff --git a/app/views/body/list.rhtml b/app/views/body/list.rhtml index 8552dd566..8496fdd35 100644 --- a/app/views/body/list.rhtml +++ b/app/views/body/list.rhtml @@ -1,11 +1,11 @@ <div id="body_sidebar"> <h1>Show only...</h1> - <h2>Alphabet</h2> - <ul><li> - <%= render :partial => 'alphabet' %> - </li></ul> -</h1> + +<h2>Alphabet</h2> +<ul><li> + <%= render :partial => 'alphabet' %> +</li></ul> <% first_row = true %> <% for row in PublicBody.categories_with_headings %> |