Sha256: 1605a939e19304a21be5fa5ae703fd6854661c726cc427250b04a90b5a5ff91a

Contents?: true

Size: 1.67 KB

Versions: 90

Compression:

Stored size: 1.67 KB

Contents

<%
btsm = Caboose::BlockTypeSiteMembership.where(:site_id => @site.id).pluq(:block_type_id)
grid = Caboose::BlockType.where(:name => 'flex_grid').first
@block_types = Caboose::BlockType.where(:parent_id => nil, :block_type_category_id => 2).where(:id => btsm).order(:description)
%>

<div class='icons' id='new_blocks_container2'>
  <h4>Drag a block<br />onto the page.</h4>
 
  <ul id='new_blocks'>
    <% if grid %>
    	<li class='title'><span>Structure</span></li>
    	<li class='blocktype bt' id='new_block_<%= grid.id %>_2' data-btid='<%= grid.id %>' data-children='2'>
    		<span class='icon icon-insert-template'></span>
    		<span class='bname'>2 Column Row</span>
    	</li>
    	<li class='blocktype bt' id='new_block_<%= grid.id %>_3' data-btid='<%= grid.id %>' data-children='3'>
    		<span class='icon icon-insert-template'></span>
    		<span class='bname'>3 Column Row</span>
    	</li>
    	<li class='blocktype bt' id='new_block_<%= grid.id %>_4' data-btid='<%= grid.id %>' data-children='4'>
    		<span class='icon icon-insert-template'></span>
    		<span class='bname'>4 Column Row</span>
    	</li>
    	<li class='blocktype bt' id='new_block_<%= grid.id %>_5' data-btid='<%= grid.id %>' data-children='5'>
    		<span class='icon icon-insert-template'></span>
    		<span class='bname'>5 Column Row</span>
    	</li>
    <% end %>
  	<li class='title'><span>Content</span></li>
    <% @block_types.each do |block_type| %>
    	<li class='blocktype bt' id='new_block_<%= block_type.id %>' data-btid='<%= block_type.id %>'>
    		<span class='icon icon-<%= block_type.icon %>'></span>
    		<span class='bname'><%= block_type.description %></span>
    	</li>
    <% end %>
  </ul>
</div>

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
caboose-cms-0.9.125 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.124 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.123 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.122 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.121 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.120 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.119 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.118 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.117 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.116 app/views/caboose/pages/_new_block_header.html.erb