Sha256: 0e65121651c6d934ca3a0b9f85be480c54bcccaefd5c94ebe2f181b266350fcd

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 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&nbsp;' -%>
  <%- 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 -%>
  <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

7 entries across 7 versions & 1 rubygems

Version Path
blog_logic-1.0.0 app/views/admin/posts/show.html.erb
blog_logic-0.7.7 app/views/admin/posts/show.html.erb
blog_logic-0.7.6 app/views/admin/posts/show.html.erb
blog_logic-0.7.5 app/views/admin/posts/show.html.erb
blog_logic-0.7.4 app/views/admin/posts/show.html.erb
blog_logic-0.7.3 app/views/admin/posts/show.html.erb
blog_logic-0.7.2 app/views/admin/posts/show.html.erb