Sha256: 91fad51391d0da6159ead9f6fcadfe535f2f441fdc92b99ef6dc39ae13ea66cd

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 KB

Contents

<%= render 'admin/headers/index', records: @translations, model_name: 'Translation' %>

<div class="table-responsive">
  <table class="forest-table table table-striped">
    <thead>
      <tr>
        <th><%= table_sorter title: 'ID', path: :admin_translations_path, scope: :by_id, default_order: :desc %></th>
        <th>Key</th>
        <th>Value</th>
        <th>Description</th>
        <th><%= table_sorter title: 'Created&nbsp;at'.html_safe, path: :admin_translations_path, scope: :by_created_at, default_order: :desc %></th>
        <th><%= table_sorter title: 'Updated&nbsp;at'.html_safe, path: :admin_translations_path, scope: :by_updated_at, default_order: :desc %></th>
        <th colspan="3"></th>
      </tr>
    </thead>

    <tbody>
      <% @translations.each do |translation| %>
        <tr>
          <td><%= translation.id %></td>
          <td><%= translation.key %></td>
          <td><%= translation.value %></td>
          <td><%= translation.description %></td>
          <td><%= forest_date translation.created_at %></td>
          <td><%= forest_date translation.updated_at %></td>
          <td width="1"><%= link_to 'Edit', edit_admin_translation_path(translation), class: 'btn btn-xs btn-primary', role: 'button' %></td>
          <td width="1">
            <% if try('translation_path', translation) %>
              <%= link_to 'Show', translation_path(translation), class: 'btn btn-xs btn-info', role: 'button', data: { turbolinks: false } %>
            <% else %>
              <%= link_to 'Show', admin_translation_path(translation), class: 'btn btn-xs btn-info', role: 'button', data: { turbolinks: false } %>
            <% end %>
          </td>
          <td width="1"><%= link_to 'Destroy', [:admin, translation], method: :delete, class: 'btn btn-xs btn-danger', role: 'button', data: { confirm: 'Are you sure?' } %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<%= paginate @translations %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forest_cms-0.98.1 app/views/admin/translations/index.html.erb