Sha256: af93d8066d43c3ba0b8bd6921174c70db59b804ddd4819cbb40db15339834336

Contents?: true

Size: 928 Bytes

Versions: 7

Compression:

Stored size: 928 Bytes

Contents

<div id="cms">
    <%= link_to 'New content', new_content_path, :class => 'button', :id => "add-content" %>
    <h1 class="intro">Content Management</h1>
    <table class="alternating admin admin-table" id="content-table">
      <tr>
         <th>Title</th>
         <th>Type</th>
         <th>DOM ID</th>  
         <th>Position</th>
         
         <th></th> 
      </tr>

    <% @contents.each do |content| %>
      <tr class=<%= cycle("even", "odd")%>>
        <td><strong><%=h content.title %></strong></td>
        <td><%=h content.tipe %></td>
        <td><%=h content.dom_id %></td>    
        <td><%=h content.position %></td>
        <td style="width: 150px;">
          <%= link_to 'Show', content %>
          <%= link_to 'Edit', edit_content_path(content) %>
          <%= link_to 'Destroy', content, :confirm => 'Are you sure?', :method => :delete %>
       </td>
      </tr>
    <% end %>
    </table>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contentment-0.5.1 lib/generators/contentment/contentment_views_templates/contents/index.html.erb
contentment-0.5.0 lib/generators/contentment/contentment_views_templates/contents/index.html.erb
contentment-0.4.0 lib/generators/contentment/contentment_views_templates/contents/index.html.erb
contentment-0.3.2 lib/generators/contentment/contentment_views_templates/contents/index.html.erb
contentment-0.3.1 lib/generators/contentment/contentment_views_templates/contents/index.html.erb
contentment-0.3.0 lib/generators/contentment/contentment_views_templates/contents/index.html.erb
contentment-0.1.0 lib/generators/contentment/contentment_views_templates/contents/index.html.erb