This commit is contained in:
jomo
2013-10-20 18:19:27 +02:00
parent db1fc7c4ef
commit 7e20ab8de7
6 changed files with 32 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
</span>
</div>
<div class="post-info">
by <%= link_to p.author.name, p.author %> on <%= p.created_at.strftime("%e. %b %Y") %>
by <%= link_user p.author %> on <%= p.created_at.strftime("%e. %b %Y") %>
</div>
<div class="post-content">
<%= Sanitize.clean(GitHub::Markdown.render_gfm(p.content), Sanitize::Config::RELAXED).html_safe %>

View File

@@ -2,7 +2,7 @@
<div class="post-title">
<h1><%= @post.title %></h1>
</div>
<div class="post-info"><%= link_to @post.author.name, @post.author %> on <%= @post.created_at.strftime("%e. %b %Y") %>
<div class="post-info"><%= link_user @post.author %> on <%= @post.created_at.strftime("%e. %b %Y") %>
<% if mod? %>
<%= link_to "edit", edit_blogpost_path(@post.id), class: "post-edit" %>
<% end %>