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.211 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.210 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.209 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.208 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.207 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.206 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.205 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.204 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.203 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.202 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.201 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.200 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.198 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.197 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.196 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.195 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.194 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.193 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.192 app/views/caboose/blocks/_checkbox.html.erb
caboose-cms-0.9.191 app/views/caboose/blocks/_checkbox.html.erb