Sha256: f37b85ed185f7ae2a115f5c24368efab8fcfcdeaf63cb6d2ab81f338cf3f4d32

Contents?: true

Size: 306 Bytes

Versions: 573

Compression:

Stored size: 306 Bytes

Contents

<%
checked = block.value
checked = 0 if checked.nil?
checked = checked == 1 || checked == '1' ? true : false
%>
<% if editing %>
  <div id='block_<%= block.id %>'><%= raw block.block_type.description %> = <%= (checked ? "Yes" : "No") %></div>
<% else %>
  <%= raw block.block_type.description %>
<% end %>

Version data entries

573 entries across 572 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-1.0.2 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-1.0.1 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.228 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.227 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.226 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.225 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.224 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.223 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.222 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.221 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.220 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.219 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.218 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.217 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.216 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.215 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.214 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.213 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.212 app/views/caboose/blocks/_checkbox.html.erb