Sha256: f3ba2cebc2a91f4a6b99e23ca748399aa131da5c97b5b122d96a16e7c55b0287

Contents?: true

Size: 413 Bytes

Versions: 11

Compression:

Stored size: 413 Bytes

Contents

<%#
    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

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/table/head/_cell.html.erb
headmin-0.6.2 app/views/headmin/table/head/_cell.html.erb
headmin-0.6.1 app/views/headmin/table/head/_cell.html.erb
headmin-0.6.0 app/views/headmin/table/head/_cell.html.erb
headmin-0.5.9 app/views/headmin/table/head/_cell.html.erb
headmin-0.5.8 app/views/headmin/table/head/_cell.html.erb
headmin-0.5.7 app/views/headmin/table/head/_cell.html.erb
headmin-0.5.6 app/views/headmin/table/head/_cell.html.erb
headmin-0.5.5 app/views/headmin/table/head/_cell.html.erb
headmin-0.5.4 app/views/headmin/table/head/_cell.html.erb
headmin-0.5.3 app/views/headmin/table/head/_cell.html.erb