Sha256: 5b3e7eeb814f378726ee0dfe7f5e46b369eaa5a12b1bd6993f7057680f21ed04

Contents?: true

Size: 810 Bytes

Versions: 5

Compression:

Stored size: 810 Bytes

Contents

<h2>Content Blocks</h2>

<% if @content_blocks.count > 0 %>
  <table id='table:<%= controller_name %>' class='resource_table'>
    <thead>
      <th>Title</th>
      <th>Page</th>
      <th class='minor'>Created</th>
      <th class='minor'>Updated</th>
    </thead>

    <tbody>
      <% @content_blocks.each do |c| %>
        <%= content_tag_for(:tr, c) do %>
          <td><%= c.title %></td>
          <td><%= c.page.title %></td>
          <td class='minor'><%= c.created_at.to_s(:short) %></td>
          <td class='minor'><%= c.updated_at.to_s(:short) %></td>
        <% end %>
      <% 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

5 entries across 5 versions & 1 rubygems

Version Path
manifest-rails-0.2.8 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.2.7 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.2.6 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.2.5 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.2.4 app/views/manifest/content_blocks/index.html.erb