Sha256: f0d4a615163cdfbf36dca107a0659336784073cd4fdb2f472e124bb655f86af9

Contents?: true

Size: 925 Bytes

Versions: 13

Compression:

Stored size: 925 Bytes

Contents

<% content_for :data_controls do %>
  <%= link_to "New Snippet",new_admin_snippet_path, :class => "btn btn-primary", :title => "New Snippet" %>
<% end %>

<% content_for :detail do %>
  <div class="table-responsive">
    <table class="table table-striped table-hover">
      <thead>
        <tr>
          <th>Name</th>
          <th>&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <% @snippets.each do |snippet| %>
          <tr>
            <td><%= snippet.name %></td>
            <td class="table-actions">
              <%= link_to 'Edit', edit_admin_snippet_path(snippet), :class => 'btn btn-sm btn-default' %>
              <%= link_to 'delete', admin_snippet_path(snippet), :method => :delete, :class => 'btn btn-sm btn-danger', :data => {:confirm => 'Are you sure you want to delete this snippet?'} %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tb_cms-1.3.6 app/views/admin/snippets/index.html.erb
tb_cms-1.3.5 app/views/admin/snippets/index.html.erb
tb_cms-1.3.3 app/views/admin/snippets/index.html.erb
tb_cms-1.3.2 app/views/admin/snippets/index.html.erb
tb_cms-1.3.1 app/views/admin/snippets/index.html.erb
tb_cms-1.3.0 app/views/admin/snippets/index.html.erb
tb_cms-1.3.beta1 app/views/admin/snippets/index.html.erb
tb_cms-1.2.3 app/views/admin/snippets/index.html.erb
tb_cms-1.2.2 app/views/admin/snippets/index.html.erb
tb_cms-1.2.1 app/views/admin/snippets/index.html.erb
tb_cms-1.2.0 app/views/admin/snippets/index.html.erb
tb_cms-1.2.0.beta3 app/views/admin/snippets/index.html.erb
tb_cms-1.2.0.beta1 app/views/admin/snippets/index.html.erb