Sha256: c365ed90024dca56d90c1cc302ced93f8242e7f296b8b7f5dc708914a50a3460

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 KB

Contents

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

    <h2 class="subtitle">
      <%= link_to 'New Link', new_admin_link_path %>
    </h2>

    <table class="table is-fullwidth is-striped">
      <thead>
        <tr>
          <th>ID</th>
          <th>URL</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
      <% @links.each do |link| %>
        <tr>
          <td><%= link_to(link.id, admin_link_path(link.id)) %></td>
          <td><%= link.url %></td>
          <td>
            <%= link_to 'View', admin_link_path(link.id), class: 'button is-small' %>
            <%= link_to 'Edit', edit_admin_link_path(link.id), class: 'button is-small' %>
            <%= link_to 'Delete', admin_link_path(link.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 @links, renderer: BulmaPagination::Rails %>
    </div>
  </div>
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stenographer-rails-0.7.4 app/views/stenographer/admin/links/index.html.erb
stenographer-rails-0.7.3 app/views/stenographer/admin/links/index.html.erb
stenographer-rails-0.7.1 app/views/stenographer/admin/links/index.html.erb
stenographer-rails-0.7.0 app/views/stenographer/admin/links/index.html.erb