diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/comment/new.rhtml | 9 | ||||
-rw-r--r-- | app/views/request/show.rhtml | 2 |
2 files changed, 9 insertions, 2 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> diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml index e10550022..15d70a8f4 100644 --- a/app/views/request/show.rhtml +++ b/app/views/request/show.rhtml @@ -98,7 +98,6 @@ <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %> <% end %> - <!-- <div id="comment_form"> <h2>Add an annotation</h2> @@ -148,7 +147,6 @@ <%= render :partial => 'comment/comment_form', :locals => { } %> </div> - --> </div> |