Sha256: 5cc0ec8a0b04251fdddf9d9791bab312118353cda652ba9ce9ec72d46571a04c

Contents?: true

Size: 1.55 KB

Versions: 16

Compression:

Stored size: 1.55 KB

Contents

extensible_attributes_table_for(entry,
                                Pageflow.config_for(entry)
                                  .admin_attributes_table_rows.for(:entry)) do
  row :title, :class => 'title'
  if authorized?(:see_own_role_on, :entries)
    row :own_role do
      own_role = Pageflow::Roles.high(current_user, entry)
      membership_role_with_tooltip(own_role, scope: 'own_entry_role')
    end
  end
  if authorized?(:see, :accounts)
    row :account, :class => 'account' do
      if authorized?(:read, entry.account)
        link_to(entry.account.name,
                admin_account_path(entry.account),
                data: {id: entry.account.id})
      else
        entry.account.name
      end
    end
  end
  row :type_name do
    span do
      I18n.t("activerecord.values.pageflow/entry.type_names.#{entry.type_name}")
    end
  end
  row :created_at
  row :edited_at
  row :published?, :class => 'published' do
    span :'data-published' => entry.published? do
      if entry.published?
        if entry.published_until
          I18n.t('pageflow.admin.entries.published_until', :published_until => I18n.l(entry.published_until))
        else
          I18n.t('pageflow.admin.entries.published_forever')
        end
      else
        I18n.t('pageflow.admin.entries.not_published')
      end
    end
  end
  row :url do
    pretty_entry_url(entry)
  end
  row :embed_code do
    embed_code_field(embed_code_entry_snippet(entry),
                     name: :entry_embed_code,
                     hint: I18n.t('pageflow.admin.entries.embed_code_hint'))
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/views/admin/entries/_attributes_table.html.arb
pageflow-17.0.3 app/views/admin/entries/_attributes_table.html.arb
pageflow-17.0.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-17.0.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-17.0.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-16.2.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-16.1.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-16.0.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.8.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.7.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.7.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.6.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.6.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.5.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.4.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.3.0 app/views/admin/entries/_attributes_table.html.arb