Sha256: 943f272f81931f93d57335ad805cfd03cd55f079fa7f9ada1729710eebbdec77

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

<h2>Content Blocks</h2>

<% if @content_blocks.count > 0 %>
  <table id='table:<%= controller_name %>'>
    <thead>
      <th>Title</th>
      <th>Page</th>
      <th>Created</th>
      <th>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><%= c.created_at.to_s(:short) %></td>
          <td><%= 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

2 entries across 2 versions & 1 rubygems

Version Path
manifest-rails-0.2.3 app/views/manifest/content_blocks/index.html.erb
manifest-rails-0.2.2 app/views/manifest/content_blocks/index.html.erb