Sha256: 390abf75f3cf7b71672cf0b430871ad7a7eaec6429af129ca0b28839a13d2ec5
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
<h1>Listing snippets</h1> <div class="row"> <div class="span6"> <h2>Search</h2> <%= render 'search' %> </div> <div class="span6"> <h2>Import snippets</h2> <%= form_tag import_snippets_path, multipart: true do %> <%= file_field_tag :file %> <%= submit_tag "Import snippets" %> <% end %> <% if StaticBlocks.config.globalize %> <h2>Import translations</h2> <%= form_tag import_translations_snippets_path, multipart: true do %> <%= file_field_tag :file %> <%= submit_tag "Import translations" %> <% end %> <% end %> <p class="help-block">*If you are using translations, you must import snippets first and then translations.</p> </div> </div> <%= paginate @snippets, :theme => 'twitter-bootstrap' %> <table id="static-block-list" class="table table-striped"> <tr> <th style="min-width: 60px;"><%= sort_link(@search, :title, "Title") %></th> <th><%= sort_link(@search, :content, "Content") %></th> <th style="min-width: 80px;"><%= sort_link(@search, :status, "Status") %></th> <th></th> <th></th> <th></th> </tr> <% @snippets.each do |snippet| %> <tr> <td><%= snippet.title %></td> <td><%= snippet.content %></td> <td><%= snippet.status %></td> <td><%= link_to 'Show', snippet_path(snippet), class: "btn btn-mini btn-success" %></td> <td><%= link_to 'Edit', edit_snippet_path(snippet), class: "btn btn-mini btn-warning" %></td> <td><%= link_to 'Destroy', snippet, class: "btn btn-mini btn-danger", method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </table> <%= paginate @snippets, :theme => 'twitter-bootstrap' %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
static_blocks-1.1.0 | app/views/static_blocks/snippets/index.html.erb |