Sha256: 2e56c725780f5375b53d57a5a8f67a64c322e8b604552547125e400c3b674e76

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

<%= content_for :page_title do %>
  <% if @post.meta_content && !@post.meta_content.meta_title.blank? %>
    <%= @post.meta_content.meta_title %>
  <% else %>
    <%= @post.title %>
  <% end %>
<% end %>
<%= content_for :page_keywords do %>
  <% if @post.meta_content %>
    <%= @post.meta_content.meta_keywords %>
  <% end %>
<% end %>
<%= content_for :page_description do %>
  <% if @post.meta_content %>
    <%= @post.meta_content.meta_description %>
  <% end %>
<% end %>

<h1>Blog</h1>

<div class="span8">
  <div class="article post">
    <h2><span id="post_title" class="mercury-region" data-mercury="full"><%= raw @post.title %></span></h2>
    <% if @post.published_at %>
      <p class="published_on"><%= @post.published_at.to_date.to_formatted_s(:long_ordinal) %></p>
    <% end %>
    <div id="post_body" class="mercury-region" data-mercury="full">
      <%= raw @post.body %>
    </div>
    <% if current_user %>
      <br />
      <p><%= link_to "Edit Page", "/editor" + request.path, id: "edit_link", data: {save_url: mercury_update_post_path(@post.id)} %></p>
    <% end %>
  </div>
</div>

<%= render :partial => 'wafflemix/posts/sidebar' %>



Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 app/views/wafflemix/posts/show.html.erb
wafflemix-0.0.5 app/views/wafflemix/posts/show.html.erb
wafflemix-0.0.4 app/views/wafflemix/posts/show.html.erb
wafflemix-0.0.3 app/views/wafflemix/posts/show.html.erb
wafflemix-0.0.2 app/views/wafflemix/posts/show.html.erb
wafflemix-0.0.1 app/views/wafflemix/posts/show.html.erb