Class: Pageflow::Admin::EntryTranslationsTab Private
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::EntryTranslationsTab
- Defined in:
- app/views/components/pageflow/admin/entry_translations_tab.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #build(entry) ⇒ Object private
Instance Method Details
#build(entry) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/views/components/pageflow/admin/entry_translations_tab.rb', line 5 def build(entry) default_translation_hint(entry) ( entry.translations.preload(:draft, :published_revision, :translation_group), blank_slate_text: I18n.t('pageflow.admin.entry_translations.no_translations') ) do table_for_collection i18n: Entry do column class: 'publication_state' do |translated_entry| entry_publication_state_indicator(translated_entry) end column :title do |translated_entry| entry_link_or_title(entry, translated_entry) end column :locale do |translated_entry| entry_translation_display_locale(translated_entry) end column do |translated_entry| mark_as_default_link(entry, translated_entry) end column do |translated_entry| remove_link(entry, translated_entry) end end end add_link(entry) generate_link(entry) end |