Sha256: 922ab31c1f0437971240326d66f4c137c46f567b8fba3853a21b1872a356e731
Contents?: true
Size: 1.34 KB
Versions: 5
Compression:
Stored size: 1.34 KB
Contents
<%- set_title 'Post Details' -%> <fieldset class="form_container"> <%= legend_tag 'About This Post' -%> <div class="form_column"> <%= faux_field 'Title', @post.title %> <%= faux_field 'URL', @post.full_path %> </div> <div class="form_column"> <%= faux_field 'Status', @post.status %> <%= faux_field 'Publication Date', @post.publication_date.try(:to_s, :concise) %> </div> </fieldset> <fieldset class="form_container"> <%= legend_tag 'Summary' -%> <div class="form_column"> <%= faux_field 'Summary', strip_tags(@post.summary) %> </div> </fieldset> <fieldset class="form_container"> <%= legend_tag 'Content ' -%> <%- if @post.state == 'published' -%> <iframe src="<%= @post.full_path -%>" width="100%" height="400px" style="background-color: #ffffff;"></iframe> <%- else -%> <div style="background-color: #ffffff; padding: 1em;"> <%= @post.content.html_safe -%> </div> <%- end -%> </fieldset> <fieldset class="form_container"> <%= legend_tag 'Categories' -%> <ul> <%- @post.blog_categories.each do |c| -%> <li><%= link_to c.name, c.url -%></li> <%- end -%> </ul> <div class="link_block"> <%= link_to 'Edit', edit_admin_blog_post_path(@blog, @post), :class => 'link_button' -%> <%= link_to 'Back', admin_blog_posts_path(@blog), :class => 'link_button' -%> </div> </fieldset>
Version data entries
5 entries across 5 versions & 1 rubygems