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.206 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.205 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.204 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.203 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.202 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.201 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.200 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.198 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.197 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.196 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.195 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.194 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.193 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.192 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.191 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.190 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.189 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.188 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.187 app/views/caboose/pages/_new_block_header.html.erb
caboose-cms-0.9.186 app/views/caboose/pages/_new_block_header.html.erb