aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/comment/_single_comment.rhtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/comment/_single_comment.rhtml b/app/views/comment/_single_comment.rhtml
index 003f60360..03c77f3b1 100644
--- a/app/views/comment/_single_comment.rhtml
+++ b/app/views/comment/_single_comment.rhtml
@@ -1,6 +1,7 @@
<div class="comment_in_request" id="comment-<%=comment.id.to_s%>">
<h2>
- <%= comment.user ? user_link(comment.user) : 'You' %>
+ <%# When not logged in, but mid-comment-leaving, there'll be no comment.user %>
+ <%= !comment.user || (!@user.nil? && @user.id == comment.user.id) ? "You" : user_link(comment.user) %>
left an annotation (<%= simple_date(comment.created_at || Time.now) %>)
</h2>
<div class="comment_in_request_text">