Sha256: c699da514ea4d6786790468770ec5df2426d82f794d542d90e764a2d09d35a3d

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

<%% @meta_title = @title = <%= class_name %>.model_name.human(count: 2) %>
<%%= options new_panel_<%= singular_name %>_path %>
<table cellpadding="0" cellspacing="0">
  <tr>
    <th>#</th>
    <th><%%= <%= class_name %>.human_attribute_name :created_at %></th>
    <th class="actions"><%%= t 'actions.actions' %></th>
  </tr>
  <%% <%= @instance_plural %>.each do |<%= singular_name %>| %>
    <tr>
      <td><%%= <%= singular_name %>.id %></td>
      <td><%%= l <%= singular_name %>.created_at %></td>
      <td class="actions">
        <%%= link_to t('actions.edit'), [:edit, :panel, <%= singular_name %>] %>
        <%%= link_to t('actions.destroy'), [:panel, <%= singular_name %>], confirm: t('actions.confirm'), method: 'delete' %>
      </td>
    </tr>
  <%% end %>
</table>
<%%= pager <%= @instance_plural %> %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
panel-0.1.5 lib/generators/panel/templates/resource/index.html.erb