Sha256: bd2d9d77c5d6feb7acb6450057829e2fc96148111ce3eca2222d6e898b79d93a

Contents?: true

Size: 1.63 KB

Versions: 8

Compression:

Stored size: 1.63 KB

Contents

<section class="section">
  <div class="container">
    <h1 class="title">
      Changes Admin
    </h1>

    <h2 class="subtitle">
      <%= link_to 'New Change', new_admin_change_path %>
    </h2>

    <table class="table is-fullwidth is-striped">
      <thead>
        <tr>
          <th>ID</th>
          <th>Date</th>
          <th>Message</th>
          <th>Visible</th>
          <th>Type</th>
          <th>Environments</th>
          <th>Actions</th>
        </tr>
      </thead>
      <tbody>
      <% @changes.each do |change| %>
        <tr>
          <td><%= link_to(change.id, admin_change_path(change.id)) %></td>
          <td><%= change.created_at.strftime('%Y/%m/%d') %></td>
          <td title="<%= change.message %>"><%= change.message.truncate(80) %></td>
          <td><%= change.visible.to_s %></td>
          <td><%= change.change_type.present? ? change.change_type.titleize : 'General'%></td>
          <td>
            <%= render partial: 'stenographer/shared/tags', locals: { tags: change.environments_to_tags } %>
          </td>
          <td>
            <%= link_to 'View', admin_change_path(change.id), class: 'button is-small' %>
            <%= link_to 'Edit', edit_admin_change_path(change.id), class: 'button is-small' %>
            <%= link_to 'Delete', admin_change_path(change.id), class: 'button is-small is-danger', :method => :delete, :data => {:confirm => 'Are you sure you want to delete this Change?'} %>
          </td>
        </tr>
      <% end %>
      </tbody>
    </table>

    <div class="changes-pagination">
      <%= will_paginate @changes, renderer: BulmaPagination::Rails %>
    </div>
  </div>
</section>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stenographer-rails-0.7.1 app/views/stenographer/admin/changes/index.html.erb
stenographer-rails-0.7.0 app/views/stenographer/admin/changes/index.html.erb
stenographer-rails-0.6.5 app/views/stenographer/admin/changes/index.html.erb
stenographer-rails-0.6.4 app/views/stenographer/admin/changes/index.html.erb
stenographer-rails-0.6.3 app/views/stenographer/admin/changes/index.html.erb
stenographer-rails-0.6.2 app/views/stenographer/admin/changes/index.html.erb
stenographer-rails-0.6.1 app/views/stenographer/admin/changes/index.html.erb
stenographer-rails-0.6.0 app/views/stenographer/admin/changes/index.html.erb