Commit 8626ec2685666c8f75cfeb16a2ed8c263659cc8d
Exists in
master
and in
1 other branch
Merge pull request #120 from boblail/show-sort
Indicate the column which is being used to sort problems
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
app/helpers/sort_helper.rb
... | ... | @@ -7,7 +7,7 @@ module SortHelper |
7 | 7 | order = (current && (@order == "asc")) ? "desc" : "asc" |
8 | 8 | url = request.path + "?sort=#{field}&order=#{order}" |
9 | 9 | options = {} |
10 | - options.merge(:class => "current") if current | |
10 | + options.merge!(:class => "current #{order}") if current | |
11 | 11 | link_to(name, url, options) |
12 | 12 | end |
13 | 13 | ... | ... |
public/stylesheets/application.css