Sha256: 6df1e6233de050cf0e1edf59ca6a4fd7262fdcdb45fe0b7e081399f16446d321
Contents?: true
Size: 1.27 KB
Versions: 7
Compression:
Stored size: 1.27 KB
Contents
<% content_for :class, 'posts 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(button) %> <%= link_to 'Tags', admin_post_tags_path(@post), class: %w(button) %> <%= link_to 'Title', admin_post_titles_path(@post), class: %w(selected 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> <% if @post.published? %> <%= render 'admin/posts/titles/form', title: @title, url: admin_post_titles_path(@post) %> <% else %> <%= render 'admin/posts/titles/form', title: @title, url: admin_post_title_path(@post, @title) %> <% end %> <h3>Titles for this post</h3> <ul class='titles'> <% @post.titles.select(&:persisted?).each do |title| %> <%= render 'admin/posts/titles/title', title: title %> <% end %> </ul> </section>
Version data entries
7 entries across 7 versions & 1 rubygems