Sha256: 80d0a457dd65b0132b1ed534a3da0a5ceeefc3b31b54dd03a72112557c8d050d

Contents?: true

Size: 745 Bytes

Versions: 4

Compression:

Stored size: 745 Bytes

Contents

<h2>Content Blocks</h2>

<% if @content_blocks.count > 0 %>
  <table>
    <thead>
      <th>Title</th>
      <th>Page</th>
      <th>Created</th>
      <th>Updated</th>
    </thead>

    <tbody>
      <% @content_blocks.each do |c| %>
        <tr>
          <td><%= link_to c.title, edit_manifest_content_block_path(c) %></td>
          <td><%= link_to c.page.title, manifest_page_path(c.page) %></td>
          <td><%= c.created_at.to_s(:short) %></td>
          <td><%= c.updated_at.to_s(:short) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

<% if current_editor.admin? %>
  <div class='model-actions'>
    <%= link_to 'New Content Block', new_manifest_content_block_path %>
  </div><!-- model-actions -->
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
manifest-rails-0.1.3 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.1.2 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.1.1 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.1.0 app/views/manifest/content_blocks/index.html.erb