diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-08-23 09:26:16 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-28 12:54:52 +0200 |
commit | 5fefb11ffd50dcda826cd5a256c8b3f650221050 (patch) | |
tree | d98721a1b054b894e282668aea79157788903e73 /src/hydrilla/proxy/web_ui/templates/packages.html.jinja | |
parent | c100476b0a34f5098efc96bf2487f09b66b4a6c4 (diff) | |
download | haketilo-hydrilla-5fefb11ffd50dcda826cd5a256c8b3f650221050.tar.gz haketilo-hydrilla-5fefb11ffd50dcda826cd5a256c8b3f650221050.zip |
introduce package installation state enum
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/packages.html.jinja')
-rw-r--r-- | src/hydrilla/proxy/web_ui/templates/packages.html.jinja | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/packages.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages.html.jinja index bcb8dea..bac774e 100644 --- a/src/hydrilla/proxy/web_ui/templates/packages.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/packages.html.jinja @@ -30,23 +30,18 @@ in a proprietary work, I am not going to enforce this in court. <h3>{{ _('web_ui.packages.heading') }}</h3> <ul id="item_list"> {% for info in display_infos %} - {% if info.info.repo == '<local>' -%} - {%- set entry_classes = 'package-entry-local' -%} - {%- else -%} - {%- set entry_classes = '' -%} - {%- endif -%} <li class="{{ entry_classes }}"> <a href="{{ url_for('.show_package', mapping_id=info.ref.id) }}"> <div> - {{ info.info.long_name }} + {{ info.identifier }} </div> - <div class="small-print"> - {{ info.info.versioned_identifier }} - {% if info.info.repo != '<local>' %} + {% if info.active_version_ref is not none %} + <div class="small-print"> + {{ versions.version_string(info.active_version_info.version) }} @ - {{ info.info.repo }} - {% endif %} - </div> + {{ info.active_version_info.repo }} + </div> + {% endif %} </a> </li> {% endfor %} |