From 14a76a91d983709ffc19d4fc713e73e01d60c029 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 1 Aug 2023 11:07:06 +0200 Subject: [PATCH] fix: [tags ui] fix galaxy, get number of tags enabled + add toolip helper --- bin/lib/Tag.py | 2 +- var/www/templates/tags/galaxies.html | 8 ++++---- var/www/templates/tags/taxonomies.html | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/lib/Tag.py b/bin/lib/Tag.py index 94b2eca4..64850b3c 100755 --- a/bin/lib/Tag.py +++ b/bin/lib/Tag.py @@ -338,7 +338,7 @@ def get_galaxy_meta(galaxy_name, nb_active_tags=False): else: meta['icon'] = f'fas fa-{icon}' if nb_active_tags: - meta['nb_active_tags'] = get_galaxy_nb_tags_enabled(galaxy) + meta['nb_active_tags'] = get_galaxy_nb_tags_enabled(galaxy.type) meta['nb_tags'] = len(get_galaxy_tags(galaxy.type)) return meta diff --git a/var/www/templates/tags/galaxies.html b/var/www/templates/tags/galaxies.html index ff69c2b5..ac0b443c 100644 --- a/var/www/templates/tags/galaxies.html +++ b/var/www/templates/tags/galaxies.html @@ -41,7 +41,7 @@ Namespace Enabled Active Tags - + @@ -51,7 +51,7 @@ {{ galaxy['description'] }} {{ galaxy['namespace'] }} - {% if galaxy['enebled'] %} + {% if galaxy['enabled'] %}
@@ -69,7 +69,7 @@ - + @@ -98,7 +98,7 @@ $(document).ready(function(){ $("#nav_galaxies").addClass("active"); - $('#myTable_').DataTable({ "lengthMenu": [ 5, 10, 25, 50, 100 ], "pageLength": 15, "order": [[ 0, "asc" ]] }); + $('#myTable_').DataTable({ "lengthMenu": [ 5, 10, 25, 50, 100 ], "pageLength": 15, "order": [[ 3, "desc" ]] }); }); diff --git a/var/www/templates/tags/taxonomies.html b/var/www/templates/tags/taxonomies.html index eff480b5..ac3346d7 100644 --- a/var/www/templates/tags/taxonomies.html +++ b/var/www/templates/tags/taxonomies.html @@ -41,7 +41,7 @@ Version Enabled Active Tags - + @@ -69,7 +69,7 @@ - + @@ -98,7 +98,7 @@ $(document).ready(function(){ $("#nav_taxonomies").addClass("active"); - $('#myTable_').DataTable({ "lengthMenu": [ 5, 10, 25, 50, 100 ], "pageLength": 15, "order": [[ 0, "asc" ]] }); + $('#myTable_').DataTable({ "lengthMenu": [ 5, 10, 25, 50, 100 ], "pageLength": 15, "order": [[ 3, "desc" ]] }); });