Sha256: 32288fbc12687c5edcdb172e0d3d3c5e672d8a5cdd73c99d303cce075f2329dd

Contents?: true

Size: 1.1 KB

Versions: 7

Compression:

Stored size: 1.1 KB

Contents

<h1>Listing Slide Shows</h1>

<ul class="choices">
  <li><%= link_to 'New slide show', new_admin_slide_show_path %></li>
</ul>

<table>
  <thead>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <th># Slides</th>
      <th colspan="2">Actions</th>
    </tr>
  </thead>
  <tbody>
<% @slide_shows.each do |slide_show| %>
    <tr id="slide_show-<%= slide_show.id %>">
      <td><%= link_to slide_show.title, admin_slide_show_path(slide_show) %></td>
      <td><%= link_to pluralize(slide_show.slides.count, "Slide"), admin_slide_show_slides_path(slide_show) %></td>
      <td class="action"><%= link_to 'Edit', admin_slide_show_path(slide_show), :class => 'edit' %></td>
      <td class="action"><%= link_to 'Destroy', admin_slide_show_path(slide_show), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' unless slide_show.lock_level >=1 || !current_user.admin? %></td>
    </tr>
<% end %>
  </tbody>
  <tfoot>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <th># Slides</th>
      <th colspan="2">Actions</th>
    </tr>
  </tfoot>
</table>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
beef-slides-1.1.4 app/views/admin/slide_shows/index.html.erb
beef-slides-1.1.5 app/views/admin/slide_shows/index.html.erb
beef-slides-1.1.11 app/views/admin/slide_shows/index.html.erb
beef-slides-1.1.10 app/views/admin/slide_shows/index.html.erb
beef-slides-1.1.9 app/views/admin/slide_shows/index.html.erb
beef-slides-1.1.8 app/views/admin/slide_shows/index.html.erb
beef-slides-1.1.7 app/views/admin/slide_shows/index.html.erb