added comment timestamps

completes #103
This commit is contained in:
Mark Moser 2017-02-24 16:05:10 -06:00
parent fbbc0edebe
commit eb6a98443c

View File

@ -7,6 +7,8 @@
<% if comment.edits? %> <% if comment.edits? %>
<div class="comment-edit-stamp">Updated <%= time_ago_in_words(comment.updated_at) %> ago</div> <div class="comment-edit-stamp">Updated <%= time_ago_in_words(comment.updated_at) %> ago</div>
<% else %>
<div class="comment-edit-stamp"><%= time_ago_in_words(comment.created_at) %> ago</div>
<% end %> <% end %>
</div> </div>