dashboard_helper.rb 382 B

12345678910
  1. # frozen_string_literal: true
  2. module Admin::DashboardHelper
  3. def feature_hint(feature, enabled)
  4. indicator = safe_join([enabled ? t('simple_form.yes') : t('simple_form.no'), fa_icon('power-off fw')], ' ')
  5. class_names = enabled ? 'pull-right positive-hint' : 'pull-right neutral-hint'
  6. safe_join([feature, content_tag(:span, indicator, class: class_names)])
  7. end
  8. end