zooppa / administrate-field-boolean_emoji

✅ A plugin to visually display boolean fields in Administrate

Home Page:https://github.com/thoughtbot/administrate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Administrate::Field::BooleanEmoji

No Maintenance Intended Build status Code Climate


IMPORTANT NOTICE

This gem is not actively maintained anymore.

If you’re interested in taking over and steward the project moving forward, please get in touch.


A plugin to visually display boolean fields in Administrate.

Usage

Add it to your Gemfile:

gem 'administrate-field-boolean_emoji', '~> 0.3.0'

Run:

$ bundle install

Add to your FooDashboard:

ATTRIBUTE_TYPES = {
  bar: Field::BooleanEmoji
}.freeze

Customize

Customize or overwrite the labels by just adding this to your config/locales/*.yml.

administrate:
  fields:
    boolean_emoji:
      "false": 👎
      "true": 👍

About

Administrate::Field::BooleanEmoji is maintained by zooppa.

See also the list of contributors who participated in this project.

About

✅ A plugin to visually display boolean fields in Administrate

https://github.com/thoughtbot/administrate

License:MIT License


Languages

Language:Ruby 76.0%Language:HTML 24.0%