Sha256: e8d0b948a9e1c5fbfb74ff118495b53bcc0c25f151582e29430e8b235fcc746d

Contents?: true

Size: 704 Bytes

Versions: 9

Compression:

Stored size: 704 Bytes

Contents

<article>
  <header>
    <h1><%= @page.title %></h1>
  </header>

  <%= render_list class: 'nav nav-tabs' do |li|
    li << [author_vcard(@page.author.name), { class: 'hidden' }]
    li << [publish_time(@page.created_at, @page.updated_at), { class: 'meta hidden' }]
    if signed_in?
      if can? :index, SimplePages::Page
        li << [link_to(t('helpers.index'), pages_path), { class: 'pull-right' }]
      end
      if can? :edit, @page
        li << [link_to(t('helpers.edit'), edit_page_path(@page)), { class: 'pull-right' }]
      end
    end
  end %>

  <div>
    <%= simple_format @page.excerpt %>
    <%= @page.content.html_safe if @page.content %>
  </div>

  <footer>
  </footer>
</article>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simple-pages-rails-0.7.0 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.6.0 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.5.0 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.4.0 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.3.1 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.3.0 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.2.0 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.1.0 app/views/simple_pages/pages/show.html.erb
simple-pages-rails-0.0.1 app/views/simple_pages/pages/show.html.erb