# HG changeset patch # User Mads Kiilerich # Date 1604935046 -3600 # Node ID 07e664871e981ac08c29173eb2c9139ea5f8c1cf # Parent b7eaad593cb90d950b5e9d11a0502794b5453bfe templates: pass repo type to repolabel as str Keep it simple and avoid passing complex repo objects around. diff -r b7eaad593cb9 -r 07e664871e98 kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html Sat Nov 07 18:54:34 2020 +0100 +++ b/kallithea/templates/base/base.html Mon Nov 09 16:17:26 2020 +0100 @@ -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 @@