From 6d02178755f115dc4f012b052daa0cff086ebcec Mon Sep 17 00:00:00 2001 From: Stefan Bühler Date: Nov 18 2017 18:27:31 +0000 Subject: fix 'path' is undefined in blame.html template setting path only in the loop restricts its scope to the loop body; so it will start undefined in each iteration. set it outside (to any value) to make it last through all iterations. --- diff --git a/pagure/templates/blame.html b/pagure/templates/blame.html index dd2afe1..52a61d0 100644 --- a/pagure/templates/blame.html +++ b/pagure/templates/blame.html @@ -74,6 +74,7 @@   {{ branchname }} + {% set path = '' %} {% for file in filename.split('/') %} {% if loop.first %} {% set path = file %}