# HG changeset patch # User Mads Kiilerich # Date 2020-11-09 16:17:26 # Node ID 07e664871e981ac08c29173eb2c9139ea5f8c1cf # Parent b7eaad593cb90d950b5e9d11a0502794b5453bfe templates: pass repo type to repolabel as str Keep it simple and avoid passing complex repo objects around. diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html +++ b/kallithea/templates/base/base.html @@ -81,11 +81,11 @@ -<%def name="repolabel(repo)"> - %if h.is_hg(repo): +<%def name="repolabel(repo_type)"> + %if repo_type == 'hg': hg %endif - %if h.is_git(repo): + %if repo_type == 'git': git %endif @@ -97,7 +97,7 @@