Sha256: 558105d0159e1ebaa8f20e41e0f50938e265f09f9a34352e503d665cf7704081

Contents?: true

Size: 836 Bytes

Versions: 3

Compression:

Stored size: 836 Bytes

Contents

<%=content_for :data_controls do%>
<%=link_to "New Snippet",new_spud_admin_snippet_path(),:class => "btn btn-primary",:title => "New Snippet"%>
<%end%>
<%=content_for :detail do%>
  <div class="page_list">
      <%@snippets.each do |snippet|%>
        <div class="page_row">

          <span class="row_meta"><%=link_to snippet.name,edit_spud_admin_snippet_path(:id => snippet.id)%></span>

          <span class="edit_controls">

            <%=link_to spud_admin_snippet_path(:id => snippet.id),:method => :delete,:class => 'btn btn-sm btn-danger',:confirm => "Are you sure you want to remove this snippet?" do%>
              <span class="glyphicon glyphicon-trash"></span>
            <%end%>
          </span>
          <br style="clear:both;"/>
        </div>
      <%end%>
      <%=will_paginate @snippets%>

  </div>



<%end%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spud_cms-1.0.2 app/views/spud/admin/snippets/index.html.erb
spud_cms-1.0.1 app/views/spud/admin/snippets/index.html.erb
spud_cms-1.0.0 app/views/spud/admin/snippets/index.html.erb