# HG changeset patch # User Mads Kiilerich # Date 2020-11-13 00:56:17 # Node ID 5e8f46e868e8c73622ef0af7b796b75b50305e07 # Parent 71a37439dcee62149382de39b759160e60bac7d9 lib: drop odd hide_credentials - just use credentials_filter directly diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py +++ b/kallithea/lib/helpers.py @@ -85,6 +85,7 @@ assert HasRepoGroupPermissionLevel assert HasRepoPermissionLevel # from utils2 assert age +assert credentials_filter assert fmt_date assert link_to_ref assert shorter @@ -354,9 +355,6 @@ def capitalize(x): def short_id(x): return x[:12] -def hide_credentials(x): - return ''.join(credentials_filter(x)) - def show_id(cs): """ diff --git a/kallithea/templates/summary/summary.html b/kallithea/templates/summary/summary.html --- a/kallithea/templates/summary/summary.html +++ b/kallithea/templates/summary/summary.html @@ -15,7 +15,7 @@ ##REMOTE %if c.db_repo.clone_uri: - - ${_('Clone from')} "${h.hide_credentials(c.db_repo.clone_uri)}" + - ${_('Clone from')} "${h.credentials_filter(c.db_repo.clone_uri)}" %endif