Sha256: 7dbb63de57c2e0f45d14a984a623f0ee3b60cdf2be58c9ad8a48aa82cc6151bf

Contents?: true

Size: 573 Bytes

Versions: 5

Compression:

Stored size: 573 Bytes

Contents

para do
  if authorized?(:edit, Pageflow::Entry)
    span(link_to(I18n.t('pageflow.admin.entries.editor'),
                 pageflow.edit_entry_path(entry),
                 class: 'editor icon_button button'))
  end

  span(link_to(I18n.t('pageflow.admin.entries.preview'),
               preview_admin_entry_path(entry),
               class: 'preview icon_button button'))

  if entry.published?
    span(link_to(I18n.t('pageflow.admin.entries.show_public'),
                 pretty_entry_url(entry),
                 class: 'show_public icon_button button'))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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