mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-23 15:24:53 +00:00
11 lines
382 B
Ruby
11 lines
382 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Admin::DashboardHelper
|
||
|
def feature_hint(feature, enabled)
|
||
|
indicator = safe_join([enabled ? t('simple_form.yes') : t('simple_form.no'), fa_icon('power-off fw')], ' ')
|
||
|
class_names = enabled ? 'pull-right positive-hint' : 'pull-right neutral-hint'
|
||
|
|
||
|
safe_join([feature, content_tag(:span, indicator, class: class_names)])
|
||
|
end
|
||
|
end
|