Sha256: d2f7415f12e76c14c45031cb5ef8dc098eeaa0a58077a0236fc548d407aed1cd

Contents?: true

Size: 350 Bytes

Versions: 12

Compression:

Stored size: 350 Bytes

Contents

<%
size = block.child('size').value
text = block.child('text').value
size = 1 if size.nil?
text = (empty_text ? empty_text : "") if text.nil? || text == ""

if editing %><div id='block_<%= block.id %>'><h<%= size %>><%= raw text %></h<%= size %>></div><% 
else       %><h<%= size %> id='block_<%= block.id %>'><%= raw text %></h<%= size %>><% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
caboose-cms-0.4.54 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.53 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.52 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.51 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.50 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.49 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.48 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.47 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.46 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.45 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.43 app/views/caboose/blocks/_heading.html.erb
caboose-cms-0.4.42 app/views/caboose/blocks/_heading.html.erb