Sha256: 59fb94b4350573d6e61774a274c52f1024fc24e90db5bc7b2d858cdc1f52fde1

Contents?: true

Size: 464 Bytes

Versions: 10

Compression:

Stored size: 464 Bytes

Contents

<th>
  <%= column.header %>
  <% table_params = (params[column.table.as] || {}) %>
  <% if column.show_sort? %>
    <%= link_to 'A', url_for(params.merge(column.table.as => table_params.merge({sort: column.name.to_s, dir: 'asc'}))) %><% if column.is_sorted?('asc') %>*<% end %>
    <%= link_to 'D', url_for(params.merge(column.table.as => table_params.merge({sort: column.name.to_s, dir: 'desc'}))) %><% if column.is_sorted?('desc') %>*<% end %>
  <% end %>
</th>

Version data entries

10 entries across 6 versions & 1 rubygems

Version Path
tableficate-0.2.1 app/views/tableficate/_header.html.erb
tableficate-0.2.1 spec/test_app/app/views/tableficate/custom_radio_block/_header.html.erb
tableficate-0.2.1 spec/test_app/app/views/tableficate/custom_check_box_block/_header.html.erb
tableficate-0.2.0 spec/test_app/app/views/tableficate/custom_check_box_block/_header.html.erb
tableficate-0.2.0 app/views/tableficate/_header.html.erb
tableficate-0.2.0 spec/test_app/app/views/tableficate/custom_radio_block/_header.html.erb
tableficate-0.1.3 app/views/tableficate/_column_header.html.erb
tableficate-0.1.2 app/views/tableficate/_column_header.html.erb
tableficate-0.1.1 app/views/tableficate/_column_header.html.erb
tableficate-0.0.1 app/views/tableficate/_column_header.html.erb