Show edited date/time on posts/comments

This commit is contained in:
Cjay
2015-07-02 18:53:18 +08:00
parent 10cb6c18aa
commit 2528d8af8a
2 changed files with 6 additions and 6 deletions

View File

@@ -5,10 +5,10 @@
= render :partial => "members/avatar", :locals => { :member => comment.author }
.col-md-11
.comment-meta
Posted by
= (comment.created_at == comment.updated_at) ? 'Posted by' : 'Edited by'
= link_to comment.author.login_name, member_path(comment.author)
at
= comment.created_at
on
= (comment.created_at == comment.updated_at) ? comment.created_at : comment.updated_at
.comment-body
:growstuff_markdown

View File

@@ -9,13 +9,13 @@
.post-meta
%p
Posted by
= (post.created_at == post.updated_at) ? 'Posted by' : 'Edited by'
= link_to post.author.login_name, member_path(post.author)
- if post.forum
in
= link_to post.forum, post.forum
at
= post.created_at
on
= (post.created_at == post.updated_at) ? post.created_at : post.updated_at
.post-body
:growstuff_markdown