Skip to content

Commit

Permalink
fix: [tags ui] fix galaxy, get number of tags enabled + add toolip he…
Browse files Browse the repository at this point in the history
…lper
  • Loading branch information
Terrtia committed Aug 1, 2023
1 parent 1aa0bd8 commit 14a76a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/lib/Tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions var/www/templates/tags/galaxies.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h3 class="mt-2 text-secondary">
<th>Namespace</th>
<th>Enabled</th>
<th>Active Tags</th>
<th></th>
<th><i class="fas fa-cogs fa-2x"></i></th>
</tr>
</thead>
<tbody>
Expand All @@ -51,7 +51,7 @@ <h3 class="mt-2 text-secondary">
<td>{{ galaxy['description'] }}</td>
<td>{{ galaxy['namespace'] }}</td>
<td class="text-center">
{% if galaxy['enebled'] %}
{% if galaxy['enabled'] %}
<div style="color:Green;">
<i class="fas fa-check-circle fa-2x"></i>
</div>
Expand All @@ -69,7 +69,7 @@ <h5>
</h5>
</td>
<td>
<a class="btn btn-outline-secondary" href="{{ url_for('tags_ui.tags_galaxy') }}?galaxy={{ galaxy['type'] }}">
<a class="btn btn-outline-secondary" href="{{ url_for('tags_ui.tags_galaxy') }}?galaxy={{ galaxy['type'] }}" data-toggle="tooltip" title="Show or Enable">
<i class="fas fa-tag"></i>
</a>
</td>
Expand Down Expand Up @@ -98,7 +98,7 @@ <h5>
$("#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" ]] });

});
</script>
Expand Down
6 changes: 3 additions & 3 deletions var/www/templates/tags/taxonomies.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h3 class="mt-2 text-secondary">
<th>Version</th>
<th>Enabled</th>
<th>Active Tags</th>
<th></th>
<th><i class="fas fa-cogs fa-2x"></i></th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -69,7 +69,7 @@ <h5>
</h5>
</td>
<td>
<a class="btn btn-outline-secondary" href="{{ url_for('tags_ui.tags_taxonomy') }}?taxonomy={{ taxonomy }}">
<a class="btn btn-outline-secondary" href="{{ url_for('tags_ui.tags_taxonomy') }}?taxonomy={{ taxonomy }}" data-toggle="tooltip" title="Show or Enable">
<i class="fas fa-tag"></i>
</a>
</td>
Expand Down Expand Up @@ -98,7 +98,7 @@ <h5>
$("#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" ]] });

});
</script>
Expand Down

0 comments on commit 14a76a9

Please sign in to comment.