Sha256: 8b7bb77fc71fc034b51749e8cfa432df8043b08ca21fce4587e9b44fd21cdba5

Contents?: true

Size: 960 Bytes

Versions: 17

Compression:

Stored size: 960 Bytes

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_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_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

17 entries across 17 versions & 1 rubygems

Version Path
fullstack-admin-0.1.40 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.39 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.38 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.37 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.36 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.35 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.34 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.33 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.32 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.30 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.29 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.28 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.27 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.26 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.25 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.24 app/views/admin/base/_index.html.erb
fullstack-admin-0.1.23 app/views/admin/base/_index.html.erb