Sha256: 1df62c119d1f402159a71bf3a89d1b8b48331d48180ecf6582d7a293e22c4927

Contents?: true

Size: 676 Bytes

Versions: 10

Compression:

Stored size: 676 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('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

10 entries across 10 versions & 1 rubygems

Version Path
pageflow-0.10.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.9.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.9.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.9.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.8.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.8.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.8.0 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.7.2 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.7.1 app/views/admin/entries/_attributes_table.html.arb
pageflow-0.7.0 app/views/admin/entries/_attributes_table.html.arb