From d992028b33de8407ae5d28a830686d461ba7db64 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 04 2016 08:29:05 +0000 Subject: 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 }}