diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-08-18 13:40:16 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-28 12:54:22 +0200 |
commit | 2579081df2a568192887d776a6965af323b7c4ee (patch) | |
tree | 12491e0ee11568a09891f4d261e9cba60e8a8d52 /src/hydrilla/proxy/web_ui/templates/repos.html.jinja | |
parent | c242a5833d41fdcee6e2b35cff7af8d445b44946 (diff) | |
download | haketilo-hydrilla-2579081df2a568192887d776a6965af323b7c4ee.tar.gz haketilo-hydrilla-2579081df2a568192887d776a6965af323b7c4ee.zip |
make it possible to list all repositories in the web UI
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/repos.html.jinja')
-rw-r--r-- | src/hydrilla/proxy/web_ui/templates/repos.html.jinja | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/repos.html.jinja b/src/hydrilla/proxy/web_ui/templates/repos.html.jinja index 59eb1bd..94b7e2b 100644 --- a/src/hydrilla/proxy/web_ui/templates/repos.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/repos.html.jinja @@ -20,7 +20,46 @@ file's licenses. Although I request that you do not make use this code in a proprietary work, I am not going to enforce this in court. #} {% extends "base.html.jinja" %} -{% block title %}Repositories{% endblock %} +{% block title %}{{ _('web_ui.repos.title') }}{% endblock %} +{% block style %} + {{ super() }} + + {% include 'include/item_list_style.css.jinja' %} +{% endblock %} {% block main %} - Not implemented yet :( + <h3>{{ _('web_ui.repos.heading') }}</h3> + <ul id="item_list"> + {% for info in display_infos %} + <li + {% if info.deleted %} + class="repo-entry-deleted" + {% endif %} + > + <a href="{{ url_for('.show_repo', repo_id=info.ref.id) }}"> + <div> + {{ info.name }} + </div> + {% if not info.deleted %} + <div class="small-print"> + {{ info.url }} + </div> + {% endif %} + <div class="small-print"> + {{ _('web_ui.repos.package_count_{}').format(info.mapping_count) }} + </div> + </a> + </li> + {% endfor %} + <li> + <a href="{{ url_for('.show_repo', repo_id=1) }}"> + {{ _('web_ui.repos.local_packages_semirepo') }} + <div class="small-print"> + {{ + _('web_ui.repos.package_count_{}') + .format(local_semirepo_info.mapping_count) + }} + </div> + </a> + </li> + </ul> {% endblock %} |