diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index 4842890..ef74452 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -169,7 +169,7 @@ {% endmacro %} -{% macro show_initial_comment(comment, username, repo, issueid, repo_admin) %} +{% macro show_initial_comment(comment, username, repo, issueid, repo_admin, form) %}
@@ -179,18 +179,29 @@
+
+ title="Reply to the initial comment - loose formatting"> {% if repo_admin or ( g.fas_user and g.fas_user.username == comment.user.username) %} - {% endif %} + {% if repo_admin %} + + {{ form.csrf_token }} + {% endif %}
+
{% endmacro %} diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index 2a0c445..1332a93 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -30,7 +30,7 @@ {{ issue.date_created | humanize}} by {{ issue.user.user }} - {{ show_initial_comment(issue, username, repo,issueid, repo_admin) }} + {{ show_initial_comment(issue, username, repo,issueid, repo_admin, form) }}