Sha256: 38d692c1b6a3b1c071b31ca2217b5922d24d5124ffa70e9840d5a72ca18997f1

Contents?: true

Size: 784 Bytes

Versions: 2

Compression:

Stored size: 784 Bytes

Contents

<% content_for :class, 'post view' %>
<header>
  <%= content_tag :h2, @post.title %>
  <nav>
    <div class='meta'>
      <%= link_to 'Preview', admin_post_path(@post), class: %w(selected button) %>
      <%= link_to 'Tags', admin_post_tags_path(@post), class: %w(button) %>
      <%= link_to 'Title', admin_post_titles_path(@post), class: %w(button) %>
    </div>

    <%= content_tag :div, class: %w(publish state), href: admin_post_toggle_path(@post), method: :put, published: @post.published?, as: 'Post.Publish' do %>
      <label>Published</label>
      <label>Draft</label>
    <% end %>
  </nav>
</header>

<section class='preview'>
  <%= link_to 'Edit this post', edit_admin_post_path(@post) %>
  <%= content_tag :article, @post.compiled_content.try(:html_safe) %>
<section>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecrire-0.26.1 lib/ecrire/app/views/admin/posts/show.html.erb
ecrire-0.26.0 lib/ecrire/app/views/admin/posts/show.html.erb