Sha256: f1bf982b76adc72ec7b30a8bd2e2fa171be485a3c99eef59bc777945b8a99ed5

Contents?: true

Size: 675 Bytes

Versions: 5

Compression:

Stored size: 675 Bytes

Contents

attributes_table_for entry do
  row :title, :class => 'title'
  if authorized?(:read, Pageflow::Account)
    row :account, :class => 'account'
  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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pageflow-0.11.4 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.11.3 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.11.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.11.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.11.0 app/views/admin/entries/_attributes_table.html.arb