mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +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:
|
else:
|
||||||
meta['icon'] = f'fas fa-{icon}'
|
meta['icon'] = f'fas fa-{icon}'
|
||||||
if nb_active_tags:
|
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))
|
meta['nb_tags'] = len(get_galaxy_tags(galaxy.type))
|
||||||
return meta
|
return meta
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<th>Namespace</th>
|
<th>Namespace</th>
|
||||||
<th>Enabled</th>
|
<th>Enabled</th>
|
||||||
<th>Active Tags</th>
|
<th>Active Tags</th>
|
||||||
<th></th>
|
<th><i class="fas fa-cogs fa-2x"></i></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
<td>{{ galaxy['description'] }}</td>
|
<td>{{ galaxy['description'] }}</td>
|
||||||
<td>{{ galaxy['namespace'] }}</td>
|
<td>{{ galaxy['namespace'] }}</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{% if galaxy['enebled'] %}
|
{% if galaxy['enabled'] %}
|
||||||
<div style="color:Green;">
|
<div style="color:Green;">
|
||||||
<i class="fas fa-check-circle fa-2x"></i>
|
<i class="fas fa-check-circle fa-2x"></i>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
</h5>
|
</h5>
|
||||||
</td>
|
</td>
|
||||||
<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>
|
<i class="fas fa-tag"></i>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -98,7 +98,7 @@ $(document).ready(function(){
|
||||||
$("#nav_galaxies").addClass("active");
|
$("#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>
|
</script>
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<th>Version</th>
|
<th>Version</th>
|
||||||
<th>Enabled</th>
|
<th>Enabled</th>
|
||||||
<th>Active Tags</th>
|
<th>Active Tags</th>
|
||||||
<th></th>
|
<th><i class="fas fa-cogs fa-2x"></i></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
</h5>
|
</h5>
|
||||||
</td>
|
</td>
|
||||||
<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>
|
<i class="fas fa-tag"></i>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -98,7 +98,7 @@ $(document).ready(function(){
|
||||||
$("#nav_taxonomies").addClass("active");
|
$("#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>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue