Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #59 from 11factory/master

Allow raw html in "sort" header column
  • Loading branch information...
commit aa3147c7e64d735377891e648846c24720fc0cf2 2 parents 2bbbd73 + b9b06fa
@bogdan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/datagrid/renderer.rb
View
4 lib/datagrid/renderer.rb
@@ -74,11 +74,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 => "↑".html_safe),
+ I18n.t("datagrid.table.order.asc", :default => "↑".html_safe).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 => "↓".html_safe),
+ I18n.t("datagrid.table.order.desc", :default => "↓".html_safe).html_safe,
@template.url_for(grid.param_name => grid.attributes.merge(:order => column.name, :descending => true )),
:class => "order desc"
)
Please sign in to comment.
Something went wrong with that request. Please try again.