Sha256: 6fa0119663648559c491038c8a1b3fb2e7253cfd6945b8881970797482758e9f

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

<%#
    name: headmin/table/head/cell
    accepts block: no
    parameters:
      value: (string) Displays value
      sort: (string) Parameter name to sort on
%>

<% sorting_param_key = local_assigns.has_key?(:sort) && sort ? "sort_#{sort}" : nil %>
<% template_name = params[sorting_param_key] || 'default' %>
<th>
  <%= render "headmin/table/head/cell/#{template_name}", key: sorting_param_key, title: value %>
</th>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.1.2 app/views/headmin/table/head/_cell.html.erb
headmin-0.1.1 app/views/headmin/table/head/_cell.html.erb