Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - config/locales/es.yml - config/locales/pl.yml - config/locales/pt-BR.yml
This commit is contained in:
10
app/helpers/admin/dashboard_helper.rb
Normal file
10
app/helpers/admin/dashboard_helper.rb
Normal file
@ -0,0 +1,10 @@
|
||||
# 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
|
Reference in New Issue
Block a user