Module: MicroAuth::AppsHelper
- Defined in:
- app/helpers/micro_auth/apps_helper.rb
Instance Method Summary collapse
-
#app_active_badge(app) ⇒ ActiveSupport::SafeBuffer
Builds & returns a tag-style badge indicating whether a specified app is active for use or not.
Instance Method Details
#app_active_badge(app) ⇒ ActiveSupport::SafeBuffer
Builds & returns a tag-style badge indicating whether a specified app is active for use or not.
6 7 8 9 |
# File 'app/helpers/micro_auth/apps_helper.rb', line 6 def app_active_badge(app) tag.span app.active? ? 'active' : 'inactive', class: "badge is-tag #{app.active? ? 'is-green' : 'is-red'}" end |