mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-09 08:17:58 -04:00
Show edited date/time on posts/comments
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user