Mercurial > kallithea
changeset 8790:5e8f46e868e8
lib: drop odd hide_credentials - just use credentials_filter directly
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 13 Nov 2020 00:56:17 +0100 |
parents | 71a37439dcee |
children | b3d8a3000a7f |
files | kallithea/lib/helpers.py kallithea/templates/summary/summary.html |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/helpers.py Mon Nov 09 17:13:33 2020 +0100 +++ b/kallithea/lib/helpers.py Fri Nov 13 00:56:17 2020 +0100 @@ -85,6 +85,7 @@ assert HasRepoPermissionLevel # from utils2 assert age +assert credentials_filter assert fmt_date assert link_to_ref assert shorter @@ -354,9 +355,6 @@ def short_id(x): return x[:12] -def hide_credentials(x): - return ''.join(credentials_filter(x)) - def show_id(cs): """
--- a/kallithea/templates/summary/summary.html Mon Nov 09 17:13:33 2020 +0100 +++ b/kallithea/templates/summary/summary.html Fri Nov 13 00:56:17 2020 +0100 @@ -15,7 +15,7 @@ ##REMOTE %if c.db_repo.clone_uri: - - <i class="icon-fork"></i>${_('Clone from')} "<a href="${h.url(str(h.hide_credentials(c.db_repo.clone_uri)))}">${h.hide_credentials(c.db_repo.clone_uri)}</a>" + - <i class="icon-fork"></i>${_('Clone from')} "<a href="${h.url(str(h.credentials_filter(c.db_repo.clone_uri)))}">${h.credentials_filter(c.db_repo.clone_uri)}</a>" %endif </%def>