Sha256: 3a8b1a9989e3311622d2b27527fd61f410ee7706648471277eb775ce1823f4d1

Contents?: true

Size: 657 Bytes

Versions: 8

Compression:

Stored size: 657 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 :updated_at
  row :published?, :class => 'published' do
    span :'data-published' => entry.published? do
      if entry.published?
        if entry.published_until
          I18n.t('admin.entries.published_until', :published_until => I18n.l(entry.published_until))
        else
          I18n.t('admin.entries.published_forever')
        end
      else
        I18n.t('admin.entries.not_published')
      end
    end
  end
  row :url do
    pageflow.short_entry_url(entry)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pageflow-0.2.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.2.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.1.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.0.5 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.0.4 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.0.3 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.0.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.0.1 app/views/admin/entries/_attributes_table.html.arb