Skip to content

Commit

Permalink
Use HTML entity arrows as default sort links.
Browse files Browse the repository at this point in the history
  • Loading branch information
barendt committed Aug 7, 2012
1 parent 813d863 commit 50730d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datagrid/renderer.rb
Expand Up @@ -65,11 +65,11 @@ def rows(grid, assets, options = {})
def order_for(grid, column)
@template.content_tag(:div, :class => "order") do
@template.link_to(
I18n.t("datagrid.table.order.asc", :default => "ASC"),
I18n.t("datagrid.table.order.asc", :default => "↑".html_safe),
@template.url_for(grid.param_name => grid.attributes.merge(:order => column.name, :descending => false)),
:class => "order asc"
) + " " + @template.link_to(
I18n.t("datagrid.table.order.desc", :default => "DESC"),
I18n.t("datagrid.table.order.desc", :default => "↓".html_safe),
@template.url_for(grid.param_name => grid.attributes.merge(:order => column.name, :descending => true )),
:class => "order desc"
)
Expand Down

0 comments on commit 50730d3

Please sign in to comment.