Sha256: ac6d5d3267a4f954017e6f8f8a5b214cce230ec7daa08dd7a8933fa5d76f4b57

Contents?: true

Size: 733 Bytes

Versions: 10

Compression:

Stored size: 733 Bytes

Contents

<% cache(@post) 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

10 entries across 10 versions & 1 rubygems

Version Path
blogelator-0.2.3 app/views/blogelator/posts/show.html.erb
blogelator-0.2.2 app/views/blogelator/posts/show.html.erb
blogelator-0.2.1 app/views/blogelator/posts/show.html.erb
blogelator-0.1.6 app/views/blogelator/posts/show.html.erb
blogelator-0.1.5 app/views/blogelator/posts/show.html.erb
blogelator-0.1.4 app/views/blogelator/posts/show.html.erb
blogelator-0.1.3 app/views/blogelator/posts/show.html.erb
blogelator-0.1.2 app/views/blogelator/posts/show.html.erb
blogelator-0.1.1 app/views/blogelator/posts/show.html.erb
blogelator-0.1.0 app/views/blogelator/posts/show.html.erb