Sha256: 92cc000fee66e1cd5e15821ff2e88113bb6fb4e3de3261f4ef640fbf11659e9d

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

<%#
# BooleanEmoji Index Partial

This partial renders an emoji based on the value of the attribute.

## Local variables:

- `field`:
  An instance of Administrate::Field::BooleanEmoji.
  A wrapper around the attribute pulled from the database.
%>

<% unless field.data.nil? %>
  <%= field.data ? field.positive_emoji : field.negative_emoji %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-field-boolean_emoji-0.0.4 app/views/fields/boolean_emoji/_index.html.erb
administrate-field-boolean_emoji-0.0.3 app/views/fields/boolean_emoji/_index.html.erb
administrate-field-boolean_emoji-0.0.2 app/views/fields/boolean_emoji/_index.html.erb