diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-16 20:02:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-16 20:02:43 +0000 |
commit | f8e401b475f17b66bb4c3193113492358c06f456 (patch) | |
tree | b93854fe0d095f93493e2c95a63cbd05e5be5ccb | |
parent | 44a898a2108708a5f8301a0c5b05a58d32db759b (diff) | |
download | redmine-f8e401b475f17b66bb4c3193113492358c06f456.tar.gz redmine-f8e401b475f17b66bb4c3193113492358c06f456.zip |
Changes the style of the links for sorting documents.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8664 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/documents/index.html.erb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb index 31f5d2ec7..d3658dac6 100644 --- a/app/views/documents/index.html.erb +++ b/app/views/documents/index.html.erb @@ -24,13 +24,11 @@ <% end %> <% content_for :sidebar do %> - <h3><%= l(:label_sort_by, '') %></h3> - <% form_tag({}, :method => :get) do %> - <label><%= radio_button_tag 'sort_by', 'category', (@sort_by == 'category'), :onclick => 'this.form.submit();' %> <%= l(:field_category) %></label><br /> - <label><%= radio_button_tag 'sort_by', 'date', (@sort_by == 'date'), :onclick => 'this.form.submit();' %> <%= l(:label_date) %></label><br /> - <label><%= radio_button_tag 'sort_by', 'title', (@sort_by == 'title'), :onclick => 'this.form.submit();' %> <%= l(:field_title) %></label><br /> - <label><%= radio_button_tag 'sort_by', 'author', (@sort_by == 'author'), :onclick => 'this.form.submit();' %> <%= l(:field_author) %></label> - <% end %> + <h3><%= l(:label_sort_by, '') %></h3> + <%= link_to l(:field_category), {:sort_by => 'category'}, :class => (@sort_by == 'category' ? 'selected' :nil) %><br /> + <%= link_to l(:label_date), {:sort_by => 'date'}, :class => (@sort_by == 'date' ? 'selected' :nil) %><br /> + <%= link_to l(:field_title), {:sort_by => 'title'}, :class => (@sort_by == 'title' ? 'selected' :nil) %><br /> + <%= link_to l(:field_author), {:sort_by => 'author'}, :class => (@sort_by == 'author' ? 'selected' :nil) %> <% end %> <% html_title(l(:label_document_plural)) -%> |