Module: MissionControl::Web::RoutesHelper
- Defined in:
- app/helpers/mission_control/web/routes_helper.rb
Instance Method Summary collapse
Instance Method Details
#route_status_tag(enabled) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/mission_control/web/routes_helper.rb', line 2 def route_status_tag(enabled) if enabled tag.span "Allowed", class: "tag is-success" else tag.span "Denied", class: "tag is-danger" end end |