Sha256: 438a6a7a1ae070aa2079d2c57b8739d1821b8d5f603ce9ad0350695d24b0455b

Contents?: true

Size: 915 Bytes

Versions: 4

Compression:

Stored size: 915 Bytes

Contents

<% page_title "Snippets" %>
<% show_manage = false %>

<table class="table table-bordered">
  <tr>
    <th>Slug</th>
    <th>Description</th>
    <% if show_manage %>
    <th>Manage</th>
    <% end %>
  </tr>

<% for snippet in @snippets %>
  <tr class="<%= cycle("even", "odd") %>">
    <td>
      <%= link_to h(snippet.slug), [:manage, snippet] %>
    </td>
    <td>
      <%= link_to h(snippet.description), [:manage, snippet] %>
    </td>
    <% if show_manage %>
    <td nowrap="nowrap">
      <%= link_to 'Show', [:manage, snippet], :class => :showable %>
      <%= link_to 'Edit', edit_manage_snippet_path(snippet), :class => :editable %>
      <%= link_to 'Destroy', [:manage, snippet], :data => { :confirm => 'Are you sure?' }, :method => :delete, :class => :deletable %>
    </td>
    <% end %>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New snippet', new_manage_snippet_path, :class => :addable %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 app/views/open_conference_ware/manage/snippets/index.html.erb
open_conference_ware-1.0.0.pre3 app/views/open_conference_ware/manage/snippets/index.html.erb
open_conference_ware-1.0.0.pre2 app/views/open_conference_ware/manage/snippets/index.html.erb
open_conference_ware-1.0.0.pre1 app/views/open_conference_ware/manage/snippets/index.html.erb