Sha256: 0973dc6d89252fa784b1d240736857409707a17f2e9d74bec58e617128946e51

Contents?: true

Size: 762 Bytes

Versions: 2

Compression:

Stored size: 762 Bytes

Contents

<% cache [Blogelator::VERSION, @post, "show"] do %>
  <div class="post">
    <h1><%= link_to @post.title, @post %></h1>
    <div class="date">
      <%= local_time(@post.published_at, format: '%B %e, %Y') %>
    </div>
    <div class="body">
      <%=raw @post.body_html %>
    </div>
  </div>
<% end %>

<div class="more-posts">
  <% if @previous_post %>
    <%= link_to @previous_post, class: "previous" do %>
      <%= @previous_post.title %><br />
      <%= local_time(@previous_post.published_at, format: '%B %e, %Y') %>
    <% end %>
  <% end %>

  <% if @next_post %>
    <%= link_to @next_post, class: "next" do %>
      <%= @next_post.title %><br />
      <%= local_time(@next_post.published_at, format: '%B %e, %Y') %>
    <% end %>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blogelator-0.2.5 app/views/blogelator/posts/show.html.erb
blogelator-0.2.4 app/views/blogelator/posts/show.html.erb