Sha256: d3dfcdaf6b5dcef0783bfef3c03f62e016eb3599d25d995b95118f2fe61c6a55

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

<% content_for(:title) { "Cassettes | #{@cassette.name}" } %>
<div class="row">
  <div class="col-md-12">
    <h1><%= @cassette.name %></h1>
    <h2>Episodes (<%= @cassette.episodes.count %>)</h2>
    <table class="table table-hover">
      <thead>
        <tr>
          <th>#</th>
          <th>Url</th>
          <th>Method</th>
          <th>Content Type</th>
          <th>Last Recorded</th>
          <th>Action</th>
        </tr>
      </thead>
      <tbody>
        <% @cassette.episodes.each_with_index do |episode, index| %>
          <tr id="episode_<%= episode.id %>_row">
            <td><%= index + 1 %></td>
            <td><%= link_to(episode.url, cassette_episode_path(@cassette, episode), html_options = { target: '_blank' }) %></td>
            <td><%= episode.request_method.upcase %></td>
            <td><%= episode.content_type %></td>
            <td title="<%= episode.recorded_at %>"><%= time_ago_in_words(episode.recorded_at) %> ago</td>
            <td>
              <%= link_to(cassette_episode_path(@cassette, episode), method: :delete, confirm: "Are you sure you want to delete the \"#{episode.url}\" episode?", 'data-severity' => 'danger', remote: true) do %>
                <button class="btn btn-danger btn-xs">
                  <i class="glyphicon glyphicon-trash"></i> &nbsp;Delete
                </button>
              <% end %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mr_video-1.0.1 app/views/mr_video/cassettes/show.html.erb
mr_video-1.0.0 app/views/mr_video/cassettes/show.html.erb