Sha256: b4c445083f3a71e6527e90acbff80c088561aa2c507b4a6b1b36b4c9bba76822

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

<%#
# BooleanEmoji Show 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

4 entries across 4 versions & 1 rubygems

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