Sha256: 5289153c5e1dd4b00d0189cdf9f7755d2ec133fbf223fe152925e32f93ae3647

Contents?: true

Size: 1.43 KB

Versions: 58

Compression:

Stored size: 1.43 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 :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

58 entries across 58 versions & 1 rubygems

Version Path
pageflow-14.5.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.2.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.2.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.2.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0.rc0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0.beta6 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0.beta5 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0.beta4 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0.beta3 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0.beta2 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.1.0.beta1 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.0.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.0.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.0.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-14.5.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-14.5.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-15.0.0.rc2 app/views/admin/entries/_attributes_table.html.arb