Sha256: ab4f4100a83cc03a8b0dade0af271cc6f9710f5fb162d6a89bd0f36c8964df7f

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

<div class="admin-header">
  <div class="well">
    <h1>Settings <span class="badge"><%= number_with_delimiter Setting.count %></span></h1>
    <%= paginate @settings %>
  </div>
</div>

<div class="table-responsive">
  <table class="forest-table table table-striped">
    <thead>
      <tr>
        <th><%= table_sorter title: 'ID', path: :admin_settings_path, scope: :by_id, default_order: :asc %></th>
        <th><%= table_sorter title: 'Title', path: :admin_settings_path, scope: :by_title, default_order: :asc %></th>
        <th><%= table_sorter title: 'Slug', path: :admin_settings_path, scope: :by_slug, default_order: :asc %></th>
        <th>Value</th>
        <th><%= table_sorter title: 'Created&nbsp;at'.html_safe, path: :admin_settings_path, scope: :by_created_at, default_order: :desc %></th>
        <th><%= table_sorter title: 'Updated&nbsp;at'.html_safe, path: :admin_settings_path, scope: :by_created_at, default_order: :desc %></th>
        <th colspan="1"></th>
      </tr>
    </thead>

    <tbody>
      <% @settings.each do |setting| %>
        <tr>
          <td><%= setting.id %></td>
          <td><%= setting.title %></td>
          <td><%= setting.slug %></td>
          <td><%= truncate admin_setting_value(setting) %></td>
          <td><%= forest_date setting.created_at %></td>
          <td><%= forest_date setting.updated_at %></td>
          <td width="1"><%= link_to 'Edit', edit_admin_setting_path(setting), class: 'btn btn-xs btn-info forest-table__link', role: 'button' %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<%= paginate @settings %>

Version data entries

1 entries across 1 versions & 1 rubygems

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