From d992028b33de8407ae5d28a830686d461ba7db64 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 04 2016 08:29:05 +0000 Subject: [PATCH 1/3] Fix links to fork: to access the user's username we need to access user first --- diff --git a/pagure/templates/user_issues.html b/pagure/templates/user_issues.html index 04a0f8f..ec1f593 100644 --- a/pagure/templates/user_issues.html +++ b/pagure/templates/user_issues.html @@ -43,7 +43,7 @@ {% if issue.private %} @@ -61,9 +61,9 @@ - {{ issue.project.username + '/' if issue.project.is_fork }} + {{ issue.project.user.username + '/' if issue.project.is_fork }} {{ issue.project.namespace + '/' if issue.project.namespace }} {{ issue.project.name }} diff --git a/pagure/templates/user_requests.html b/pagure/templates/user_requests.html index 61922cf..a1b1a48 100644 --- a/pagure/templates/user_requests.html +++ b/pagure/templates/user_requests.html @@ -44,7 +44,7 @@ {{ request.title | noJS("img") | safe }} @@ -58,9 +58,9 @@ - {{ request.project.username + '/' if request.project.is_fork }} + {{ request.project.user.username + '/' if request.project.is_fork }} {{ request.project.namespace + '/' if request.project.namespace }} {{ request.project.name }} From d00bd73ecfc5adf9745316850a9c5abefea32732 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 04 2016 08:29:05 +0000 Subject: [PATCH 2/3] Small fix in the html to avoid an almost empty line --- diff --git a/pagure/templates/user_issues.html b/pagure/templates/user_issues.html index ec1f593..49b70d2 100644 --- a/pagure/templates/user_issues.html +++ b/pagure/templates/user_issues.html @@ -32,7 +32,7 @@ {% for issue in user.issues %} + {%- if issue.status|lower != "open" %} style="display:none;"{% endif %}> #{{ issue.id }}