123456789101112 |
- <div class="page-header">
- <h1><%= @blog_post.title %></h1>
- <small><%= t "blog.by" %> <%= @blog_post.author.full_name %>, <%= time_ago_in_words(@blog_post.created_at) %> <%= t "blog.ago" %></small>
- </div>
- <%= @blog_post.content.html_safe %>
- <div style="margin-top: 40px; text-align: center;">
- <%= link_to (t "nav.edit"), edit_blog_post_path(@blog_post), :class => 'btn btn-small', :id => ['edit_' + @blog_post.slug] if user_signed_in? %>
- <%= link_to (t "nav.back"), blog_path, :class => 'btn btn-small' %>
- </div>
|