diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-09-27 11:03:55 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-28 14:03:18 +0200 |
commit | ba580db6b07d6fcb4877259f13052ddee34afb90 (patch) | |
tree | 9ab109cefad0ee276f696788ea24aad3390eea17 /src/hydrilla/proxy/web_ui/templates/repos | |
parent | d42379c189c33dac732a1a1341395a9f5683260b (diff) | |
download | haketilo-hydrilla-ba580db6b07d6fcb4877259f13052ddee34afb90.tar.gz haketilo-hydrilla-ba580db6b07d6fcb4877259f13052ddee34afb90.zip |
[proxy] make some (possibly confusing) web UI parts only display to advanced users
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/repos')
-rw-r--r-- | src/hydrilla/proxy/web_ui/templates/repos/show_single.html.jinja | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/repos/show_single.html.jinja b/src/hydrilla/proxy/web_ui/templates/repos/show_single.html.jinja index 25015ae..d2c85df 100644 --- a/src/hydrilla/proxy/web_ui/templates/repos/show_single.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/repos/show_single.html.jinja @@ -159,13 +159,20 @@ code in a proprietary work, I am not going to enforce this in court. <div class="horizontal-separator"></div> {% endif %}{# not display_info.deleted (elif) #} <p> - {{ - _('web_ui.repos.item_count_{mappings}_{resources}') - .format( - mappings = display_info.mapping_count, - resources = display_info.resource_count - ) - }} + {% if settings.advanced_user %} + {{ + _('web_ui.repos.item_count_{mappings}_{resources}') + .format( + mappings = display_info.mapping_count, + resources = display_info.resource_count + ) + }} + {% else %} + {{ + _('web_ui.repos.item_count_{mappings}') + .format(mappings = display_info.mapping_count) + }} + {% endif %} </p> {% if not display_info.is_local_semirepo and not display_info.deleted %} |