diff options
Diffstat (limited to 'app/views/comment/new.rhtml')
-rw-r--r-- | app/views/comment/new.rhtml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/comment/new.rhtml b/app/views/comment/new.rhtml index 22e260c1b..b377f82fa 100644 --- a/app/views/comment/new.rhtml +++ b/app/views/comment/new.rhtml @@ -1,5 +1,14 @@ <% @title = "Make an annotation on '" + h(@info_request.title) + "'" %> +<% if @existing_comment %> + <div class="errorExplanation" id="errorExplanation"><ul> + <li> + <%= user_or_you_capital(@existing_comment.user) %> already + made this annotation on <%=simple_date(@existing_comment.created_at)%>. + </li> + </ul></div> +<% end %> + <%= foi_error_messages_for :comment %> <h1>Add an annotation</h1> |