Sha256: 8cd06282724882ed8e1264ff0e6428a89347ed1565c662cb05069e71f07aa397

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

<% content_for(:title) { 'Cassettes' } %>
<div class="row">
  <div class="col-md-12">
    <h1>Cassettes <small class="text-muted"><%= @cassettes.count %></small></h1>
    <table class="table table-hover">
      <thead>
        <tr>
          <th scope="col" style="width: 4em" class="text-right">#</th>
          <th scope="col" style="width: 80%">Name</th>
          <th scope="col" style="width: 5em" class="text-right">Episodes</th>
          <th scope="col" style="width: 20%">Last Updated</th>
          <th scope="col" style="width: 9em" class="text-center">Action</th>
        </tr>
      </thead>
      <tbody>
        <% @cassettes.each_with_index do |cassette, index| %>
          <tr id="cassette_<%= cassette.id %>_row">
            <th scope="row" class="text-right"><%= index + 1 %></th>
            <td title="<%= cassette.name %>"><%= link_to(cassette.name, cassette_path(cassette)) %></td>
            <td class="text-right"><%= cassette.episodes.count %></td>
            <td class="small text-muted" title="<%= cassette.updated_at %>"><%= time_ago_in_words(cassette.updated_at) %> ago</td>
            <td class="text-center">
              <%= link_to('Delete', cassette_path(cassette), method: :delete, data: { confirm: "Are you sure you want to delete the \"#{cassette.name}\" cassette?", severity: 'danger' }, remote: true, class: 'btn btn-outline-danger btn-sm') %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mr_video-1.1.3 app/views/mr_video/cassettes/index.html.erb