aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog_posts/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/blog_posts/show.html.erb')
-rw-r--r--app/views/blog_posts/show.html.erb15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/views/blog_posts/show.html.erb b/app/views/blog_posts/show.html.erb
index 2cd39c6..7a4c9c3 100644
--- a/app/views/blog_posts/show.html.erb
+++ b/app/views/blog_posts/show.html.erb
@@ -1,12 +1,25 @@
<% content_for :body_content_title, @blog_post.title %>
<% content_for :body_content_left do %>
-
<%= @blog_post.body %>
+ <% if (categories = @blog_post.categories).any? %>
+ <%= t('.filed_in') %>
+ <ul>
+ <% categories.each do |category| %>
+ <li>
+ <%= link_to category.title, blog_category_url(category) %>
+ </li>
+ <% end %>
+ </ul>
+ <% end %>
<% end %>
<% content_for :body_content_right do %>
+ <h2><%= t('.created_at_title') %></h2>
+ <%= t('.created_at', :when => @blog_post.created_at.strftime('%d %B %Y')) %>
+ <%= render :partial => "sidebar" %>
+
<h2><%= t('.other') %></h2>
<ul id="blog_post">
<% @blog_posts.each do |blog_post| %>