Sha256: 08e826d7d1c19cdc796140092f47e317879d363afa152bed0c017cfee03e052c

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

<div class="order">
  <%= link_to(
      I18n.t("datagrid.table.order.asc", :default => "&uarr;".html_safe).html_safe,
      url_for(grid.param_name => grid.attributes.merge(:order => column.name, :descending => false)),
      :class => "asc") %>
  <%= link_to(
      I18n.t("datagrid.table.order.desc", :default => "&darr;".html_safe).html_safe,
      url_for(grid.param_name => grid.attributes.merge(:order => column.name, :descending => true )),
      :class => "desc") %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datagrid-0.8.4 app/views/datagrid/_order_for.html.erb
datagrid-0.8.3 app/views/datagrid/_order_for.html.erb
datagrid-0.8.2 app/views/datagrid/_order_for.html.erb