diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index 036bc9b..3c463e2 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -17,30 +17,33 @@
-

- #{{ issueid }} - {{issue.title | noJS("img") | safe }} - {% if issue.private %} - - {% endif %} -

+

+ #{{ issueid }} + {{issue.title | noJS("img") | safe }} + {% if issue.private %} + + {% endif %} +

Created {{ issue.date_created | humanize}} by {{ issue.user.user }}
- {{ show_initial_comment(issue, 0, repo, username, issueid, form, issue) }} -
- {% if issue.comments %} - {% for comment in issue.comments %} - {{ show_comment(comment, comment.id, repo, username, issueid, form, repo_admin) }} - {% endfor %} - {% endif %} -
- +
+
+ {{ form.csrf_token }} + {% if issue.comments %} + {% for comment in issue.comments %} + {{ show_comment(comment, comment.id, repo, username, issueid, form, repo_admin) }} + {% endfor %} + {% endif %} +
+
@@ -327,18 +330,18 @@ source.addEventListener('message', function(e) { {% if authenticated and form %} function try_async_comment(form) { - if (!sse) { - $(form).off('submit'); - form.submit(); - return false; - } - var _url = form.action + "?js=1"; var _data = $(form).serialize(); var btn = $(document.activeElement); if (btn[0].name == 'drop_comment'){ _data += '&drop_comment=' + btn[0].value; return true; } + if (!sse) { + $(form).off('submit'); + form.submit(); + return false; + } + var _url = form.action + "?js=1"; $.post( _url, _data ) .done(function(data) { if(data == 'ok') { @@ -411,7 +414,7 @@ $( document ).ready(function() { }); -$('#blocks').selectize({ + $('#blocks').selectize({ plugins: ['remove_button'], valueField: 'id', labelField: 'id', @@ -437,7 +440,7 @@ $('#blocks').selectize({ } }); -$('#depends').selectize({ + $('#depends').selectize({ plugins: ['remove_button'], valueField: 'id', labelField: 'id',