Sha256: 010bcd3b97d2d7ebb3a885a6622824c1fa0d79bca8ddf04e942429dd7146f28c

Contents?: true

Size: 1.21 KB

Versions: 41

Compression:

Stored size: 1.21 KB

Contents

<% title_column_or_id = title_column(current_resource_class) || "id" %>

<% if thead -%>
    <th><%= sort_link title_column_or_id %></th>

<% if title_column_or_id == "id" %>
  <% if meth = name_method_for(current_resource_class) %>
    <th><%= t("helpers.label.#{meth}") %></th>
  <% end %>
<% end %>

<% if has_locale?(current_resource_class) %>
     <th><%= sort_link :locale %></th>
<% end %>

<% if has_timestamps?(current_resource_class) %>
    <th><%= sort_link :created_at %></th>
<% end %>
    <th><%= t('fullstack.admin.actions', :default => "Actions") %></th>
<% end -%>

<% if tbody -%>
    <td><%= link_to (content.send(title_column_or_id)), [:edit,  :admin, content]  %></td>

<% if title_column_or_id == "id" %>
  <% if (name = name_for(content)).present? %>
  <td><%= link_to name, [:edit,  :admin, content]  %></td>
  <% end %>
<% end %>

<% if has_locale?(current_resource_class) %>
     <td><%= content.locale ? t("locale_names.#{content.locale}", :default => "#{content.locale}".humanize) : "–" %></td>
<% end %>

<% if has_timestamps?(current_resource_class) %>
    <td><%= l content.created_at.to_date, :format => :long %></td>
<% end %>

    <td><%= default_collection_actions_for(content) %></td>
<% end -%>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
fullstack-admin-0.2.26 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.25 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.24 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.23 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.22 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.21 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.20 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.19 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.18 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.17 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.16 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.15 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.14 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.13 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.12 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.11 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.9 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.8 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.7 app/views/admin/base/_index.html.erb
fullstack-admin-0.2.6 app/views/admin/base/_index.html.erb