From 09369ecd8c1e02f8c33bf690a7b9cd0a4c9245e8 Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Aug 07 2017 20:04:10 +0000 Subject: my_issues: only show issues if the issue tracker is on for the project Signed-off-by: Vivek Anand --- diff --git a/pagure/templates/user_issues.html b/pagure/templates/user_issues.html index c25a0ad..e5150cc 100644 --- a/pagure/templates/user_issues.html +++ b/pagure/templates/user_issues.html @@ -42,7 +42,7 @@ - {% for issue in issues %} + {% for issue in issues if issue.project.settings.get('issue_tracker', True) %} #{{ issue.id }} diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py index 6dd97d4..8ab1813 100644 --- a/tests/test_pagure_flask_ui_app.py +++ b/tests/test_pagure_flask_ui_app.py @@ -1350,6 +1350,52 @@ class PagureFlaskApptests(tests.Modeltests): output.data.count('