Sha256: e131a9a756f225ba2fbde2e22de1d67586bc9da72cd5ae1fb2f3cede60f58a18
Contents?: true
Size: 650 Bytes
Versions: 6
Compression:
Stored size: 650 Bytes
Contents
<%# # Boolean Show Partial This partial renders a boolean attribute, to be displayed on a resource's show page. By default, the attribute is rendered as a string representation of the boolean value. ## Local variables: - `field`: An instance of [Administrate::Field::Boolean][1]. A wrapper around the boolean value pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Boolean %> <% boolean_value = field.data ? 'Yes' : 'No' %> <div class="bg-gray-50 p-3 rounded-md shadow-sm"> <span class="<%= field.data ? 'text-green-600' : 'text-red-600' %> font-medium"> <%= boolean_value %> </span> </div>
Version data entries
6 entries across 6 versions & 1 rubygems