Sha256: 9d6414f7a67d5277a5bfe721ff3014658cc41c567323428efe3981e713745220

Contents?: true

Size: 940 Bytes

Versions: 7

Compression:

Stored size: 940 Bytes

Contents

<% content_for :class, 'post view' %>

<%= content_tag :header do |header| %>
  <nav>
    <div class='meta'>
      <%= link_to 'Edit', edit_admin_post_path(@post), class: %w(button) %>
      <%= 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>

  <%= content_tag :h2, @post.title %>

  <% if @post.header? %>
    <% header[:style] = "background-image: url(#{@post.header.url});" %>
  <% end %>
<% end %>

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ecrire-0.28.3 lib/ecrire/app/views/admin/posts/show.html.erb
ecrire-0.28.2 lib/ecrire/app/views/admin/posts/show.html.erb
ecrire-0.28.1 lib/ecrire/app/views/admin/posts/show.html.erb
ecrire-0.28.0 lib/ecrire/app/views/admin/posts/show.html.erb
ecrire-0.27.0 lib/ecrire/app/views/admin/posts/show.html.erb
ecrire-0.26.3 lib/ecrire/app/views/admin/posts/show.html.erb
ecrire-0.26.2 lib/ecrire/app/views/admin/posts/show.html.erb