mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [tags ui] fix galaxy, get number of tags enabled + add toolip helper
This commit is contained in:
parent
1aa0bd8a0e
commit
14a76a91d9
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<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>
|
||||
|
@ -51,7 +51,7 @@
|
|||
<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>
|
||||
|
@ -69,7 +69,7 @@
|
|||
</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>
|
||||
|
@ -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" ]] });
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<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>
|
||||
|
@ -69,7 +69,7 @@
|
|||
</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>
|
||||
|
@ -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" ]] });
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue