First working version of mails on comments.

This commit is contained in:
Ralf Teusner
2016-06-17 14:48:57 +02:00
parent 80503a636a
commit ec26a095f6
6 changed files with 39 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<div class="list-group">
<h4 class="list-group-item-heading"><%= Exercise.find(@request_for_comment.exercise_id) %></h4>
<h4 class="list-group-item-heading" data-rfc-id = "<%= @request_for_comment.id %>" ><%= Exercise.find(@request_for_comment.exercise_id) %></h4>
<p class="list-group-item-text">
<%
user = @request_for_comment.user
@@ -101,7 +101,8 @@ do not put a carriage return in the line below. it will be present in the presen
file_id: file_id,
row: row,
column: 0,
text: commenttext
text: commenttext,
request_id: $('h4').data('rfc-id')
}
},
dataType: 'json',