Module: ActiveAdmin::Globalize::IndexTableFor

Defined in:
lib/active_admin/globalize/index_table_for_extension.rb

Instance Method Summary collapse

Instance Method Details

#translation_statusObject



6
7
8
9
10
11
12
# File 'lib/active_admin/globalize/index_table_for_extension.rb', line 6

def translation_status
  column I18n.t("active_admin.globalize.translations") do |obj|
    obj.translation_names.map do |t|
      '<span class="status_tag">%s</span>' % t
    end.join(" ").html_safe
  end
end

#translation_status_flagsObject



13
14
15
16
17
# File 'lib/active_admin/globalize/index_table_for_extension.rb', line 13

def translation_status_flags
  column I18n.t("active_admin.globalize.translations") do |obj|
    obj.translations.map(&:locale).sort.map { |l| flag_icon(l) }.join(' ').html_safe
  end
end