Sha256: 5fbad3a9a0730033a18f3a186aa90436bcd041228ac6c4a30a24a62ec7155bcd

Contents?: true

Size: 1.39 KB

Versions: 10

Compression:

Stored size: 1.39 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 'Short Title', @post.title_short -%>
    <%= faux_field 'URL', @post.full_path -%>
  </div>
  <div class="form_column">
    <%= faux_field 'Publication Date', @post.publication_date.try(:to_s, :concise) -%>
    <%= faux_field 'Status', @post.status -%>
  </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="400" style="background-color: #FFF"></iframe>
  <%- else -%>
    <div style="background-color: #FFF; 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

10 entries across 10 versions & 1 rubygems

Version Path
blog_logic-1.2.4 app/views/admin/posts/show.html.erb
blog_logic-1.2.3 app/views/admin/posts/show.html.erb
blog_logic-1.2.2 app/views/admin/posts/show.html.erb
blog_logic-1.2.1 app/views/admin/posts/show.html.erb
blog_logic-1.2.0 app/views/admin/posts/show.html.erb
blog_logic-1.1.9 app/views/admin/posts/show.html.erb
blog_logic-1.1.8 app/views/admin/posts/show.html.erb
blog_logic-1.1.7 app/views/admin/posts/show.html.erb
blog_logic-1.1.6 app/views/admin/posts/show.html.erb
blog_logic-1.1.5 app/views/admin/posts/show.html.erb