From 58786de6cf38e42c4ef84e5324bae2c4f563fcc8 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 25 2016 08:41:26 +0000 Subject: fixed messed up macro params that was causing issue#618 --- diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index e8f33f2..e80a755 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -160,7 +160,7 @@ {% endmacro %} -{% macro show_initial_comment(comment, id, repo, username, issueid, form, repo_admin, issue) %} +{% macro show_initial_comment(comment, username, repo, issueid, repo_admin) %}
@@ -177,10 +177,10 @@ reply - {% if repo_admin or g.fas_user.username == issue.user.username %} + {% if repo_admin or (g.fas_user.username == comment.user.username) %} - edit + edit {% endif %}
diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index 30f6a2c..7fab733 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, 0, repo, username, issueid, form, issue) }} + {{ show_initial_comment(issue, username, repo,issueid, repo_admin) }}