Sha256: 1df0dafa654642c6af6cc60e857a92c2528d2bcda1bcb68023e7413a83637979
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
<% content_for :class, 'posts view' %> <header> <%= content_tag :h2, @post.title %> <nav> <div class='meta'> <%= 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> </header> <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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecrire-0.26.1 | lib/ecrire/app/views/admin/posts/titles/index.html.erb |
ecrire-0.26.0 | lib/ecrire/app/views/admin/posts/titles/index.html.erb |