diff options
author | francis <francis> | 2008-09-07 17:07:20 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-07 17:07:20 +0000 |
commit | d3478542f61323ab30ac874aa74e211a322cd6f0 (patch) | |
tree | c7eaaf6147ec0f5e97294f436e9ef48faf9a523a | |
parent | 7a1f08b24c984d4c9275265a20dd7f00c212ccb4 (diff) |
Oops.
-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 %> |