From 49a116a12e5c89bf9560129f605d642edecafbaf Mon Sep 17 00:00:00 2001 From: joshua stein Date: Mon, 3 Feb 2014 14:37:31 -0600 Subject: [PATCH] "edited by e-mail" doesn't make much sense --- app/views/comments/_comment.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 62f0469..994f1b9 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -36,10 +36,13 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ? <% end %> ><%= comment.user.username %> - <%= comment.has_been_edited?? "edited" : "" %> + <% if comment.has_been_edited? %> + edited + <% elsif comment.is_from_email? %> + e-mailed + <% end %> <%= raw(time_ago_in_words_label(comment.has_been_edited? ? comment.updated_at : comment.created_at).gsub(/^about /, "")) %> ago - <%= comment.is_from_email?? "via e-mail" : "" %> <% end %> <% if !comment.previewing %>