diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-01-14 12:32:22 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-03-10 10:12:31 +0000 |
commit | a53568e6a1db7f3e8ed8174ca6c34271d7e4598a (patch) | |
tree | 8f3fdb68c0a65c411b0e40b073dcf74cde7a7786 | |
parent | b561c0ba9215cecc4d60c1d78fdf71912304ddb0 (diff) |
explicit linking to request listing URLs so we can translate them
-rw-r--r-- | app/views/request/list.rhtml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/request/list.rhtml b/app/views/request/list.rhtml index 222bd938d..90e5f4605 100644 --- a/app/views/request/list.rhtml +++ b/app/views/request/list.rhtml @@ -1,12 +1,12 @@ <div id="list_sidebar"> <h1>Show only...</h1> <ul> -<% for view, description in [ - ['successful', "Successful responses"], - ['recent', "Recently sent requests"] +<% for view, description, target in [ + ['successful', "Successful responses", request_list_successful_url(:view => 'successful')], + ['recent', "Recently sent requests", request_list_recent_url(:view => 'recent')] ] %> -<li> - <%= link_to_unless (@view == view), description, request_list_url(:view => view) %> +<li> + <%= link_to_unless (@view == view), description, target %> </li> <% end %> </ul> |