闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
382 B

  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