From 40a8927741dfe20d7bf6169221a3791598e1b1c1 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 21 2018 15:40:41 +0000 Subject: Fix showing a regular comment on a PR when there are none before Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html index 689d357..9467bb6 100644 --- a/pagure/templates/repo_pull_request.html +++ b/pagure/templates/repo_pull_request.html @@ -382,7 +382,6 @@
{{ show_pr_initial_comment(pull_request, repo, form, username) }}
- {% if pull_request.comments %}
+ {% if pull_request.comments %} {% for comment in pull_request.comments %} {% if comment.commit_id %} {{ show_comment(comment, comment.id, repo, username, @@ -412,8 +412,8 @@ {% endif %} {% endfor %} {{ mergeform.csrf_token }} -
{% endif %} +
{% if g.authenticated and mergeform %}