diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 49d650f..4a31c60 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -297,7 +297,7 @@ commit=patch_new_id, prequest=pull_request, index=loop.index, - tree=diff_commits[0].tree.id)}} + tree_id=diff_commits[0].tree.id)}} {% endautoescape %} diff --git a/pagure/ui/filters.py b/pagure/ui/filters.py index 418f653..1f877db 100644 --- a/pagure/ui/filters.py +++ b/pagure/ui/filters.py @@ -52,7 +52,7 @@ def format_ts(string): @APP.template_filter('format_loc') -def format_loc(loc, commit=None, filename=None, tree=None, prequest=None, +def format_loc(loc, commit=None, filename=None, tree_id=None, prequest=None, index=None): """ Template filter putting the provided lines of code into a table """ @@ -90,7 +90,7 @@ def format_loc(loc, commit=None, filename=None, tree=None, prequest=None, '' '
' '' '
' @@ -101,7 +101,7 @@ def format_loc(loc, commit=None, filename=None, tree=None, prequest=None, 'img': flask.url_for('static', filename='users.png'), 'filename': filename, 'commit': commit, - 'tree': tree, + 'tree_id': tree_id, } ) )