Sha256: 14e57b8a391405a49c5f875aec1787de1810e8fdd5901d5253fb25b5f70d9dd1

Contents?: true

Size: 799 Bytes

Versions: 1

Compression:

Stored size: 799 Bytes

Contents

<div id='crumbtrail'>
  <a href='/admin'>Admin</a> >
  Block Types
</div>

<h1>Block Types</h1>

<p>  
  <a href='/admin/block-types/store'>Block Type Store</a> |
  <a href='/admin/block-types/new'>New Block Type</a>
</p>

<% if (@block_types.count > 0) %>

  <table class='data'>
    <tr>
      <th>Site</th>
      <th>Name</th>
      <th>Description</th>      
    </tr>
  <% @block_types.each do |bt| %>
    <tr onclick="window.location='/admin/block-types/<%= bt.id %>/edit';">
      <td><%= bt.site_id ? (bt.site.description && bt.site.description.strip.length > 0 ? bt.site.description : bt.site.name) : 'Global' %></td> 
      <td><%= bt.name        %></td>
      <td><%= bt.description %></td>    
    </tr>
  <% end %>
  </table>  

<% else %>

  <p>There are no block types.</p>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caboose-cms-0.4.145 app/views/caboose/block_types/admin_index.html.erb