From 99ea742a59f734f15d82a2632e62a410835c52cb Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 5 Apr 2023 11:06:21 +0200 Subject: [PATCH] chg: [tags] remove old flask blueprint --- .../PasteSubmit/templates/submit_items.html | 12 +- var/www/modules/Tags/Flask_Tags.py | 168 ----------------- .../modules/Tags/templates/edit_galaxy.html | 175 ------------------ .../Tags/templates/edit_taxonomie.html | 173 ----------------- var/www/modules/Tags/templates/galaxies.html | 121 ------------ .../modules/Tags/templates/header_Tags.html | 1 - .../Tags/templates/tag_galaxy_info.html | 114 ------------ .../modules/Tags/templates/taxonomies.html | 112 ----------- var/www/templates/modals/add_tags.html | 12 +- 9 files changed, 12 insertions(+), 876 deletions(-) delete mode 100644 var/www/modules/Tags/Flask_Tags.py delete mode 100644 var/www/modules/Tags/templates/edit_galaxy.html delete mode 100644 var/www/modules/Tags/templates/edit_taxonomie.html delete mode 100644 var/www/modules/Tags/templates/galaxies.html delete mode 100644 var/www/modules/Tags/templates/header_Tags.html delete mode 100644 var/www/modules/Tags/templates/tag_galaxy_info.html delete mode 100644 var/www/modules/Tags/templates/taxonomies.html diff --git a/var/www/modules/PasteSubmit/templates/submit_items.html b/var/www/modules/PasteSubmit/templates/submit_items.html index 80234465..fe0931fb 100644 --- a/var/www/modules/PasteSubmit/templates/submit_items.html +++ b/var/www/modules/PasteSubmit/templates/submit_items.html @@ -256,7 +256,7 @@ $(document).ready(function () { $("#page-items-submit").addClass("active"); - $.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}", + $.getJSON("{{ url_for('tags_ui.get_all_taxonomies_customs_tags') }}", function (data) { ltags = $('#ltags').tagSuggest({ @@ -267,7 +267,7 @@ }); }); - $.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}", + $.getJSON("{{ url_for('tags_ui.tag_galaxies_tags_enabled_json') }}", function (data) { ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({ @@ -306,7 +306,7 @@ - - - - - - - - - - - {% include 'navbar.html' %} - -
- - - -
-
{{ name }} - {% if active %} - Enabled -     - {{ badge }} - {% endif %} - {% if not active %} - Disabled - {% endif %} -
-
- {{ description }} -

- Version: {{ version }} - {% if active %} - - Disable Galaxy - - {% endif %} - {% if not active %} - - Enable Galaxy - - {% endif %} -
-
- -
- - - - - - - - - - - - - - - {% for tag in tags %} - - - - - - - {% endfor %} - - -
TagDescriptionEnabled
- {% if status[loop.index0] %} -
Enabled
- - {% endif %} - {% if not status[loop.index0] %} -
Disabled
- - {% endif %} -
- {{ tag[0] }} - {{ tag[1] }} - {% if status[loop.index0] %} -
Enabled
-
- {% endif %} - {% if not status[loop.index0] %} -
Disabled
-
- {% endif %} -
- - -
- -
- -
- -
- - - - - - - - - - diff --git a/var/www/modules/Tags/templates/edit_taxonomie.html b/var/www/modules/Tags/templates/edit_taxonomie.html deleted file mode 100644 index 30826c5a..00000000 --- a/var/www/modules/Tags/templates/edit_taxonomie.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - Edit Taxonomie - AIL - - - - - - - - - - - - - - - - - - - - {% include 'navbar.html' %} - -
- - - -
-
{{ name }} - {% if active %} - Enabled -     - {{ badge }} - {% endif %} - {% if not active %} - Disabled - {% endif %} -
-
- {{ description }} -

- Version: {{ version }} - {% if active %} - - Disable Taxonomie - - {% endif %} - {% if not active %} - - Enable Taxonomie - - {% endif %} -
-
- -
- - - - - - - - - - - - - - - {% for tag in all_tags %} - - - - - - - {% endfor %} - - -
TagDescriptionEnabled
- {% if status[loop.index0] %} -
Enabled
- - {% endif %} - {% if not status[loop.index0] %} -
Disabled
- - {% endif %} -
{{ tag }}{{ list_tag_desc[loop.index0] }} - {% if status[loop.index0] %} -
Enabled
-
- {% endif %} - {% if not status[loop.index0] %} -
Disabled
-
- {% endif %} -
- - -
- -
- -
- -
- - - - - - - - - - diff --git a/var/www/modules/Tags/templates/galaxies.html b/var/www/modules/Tags/templates/galaxies.html deleted file mode 100644 index ea89c920..00000000 --- a/var/www/modules/Tags/templates/galaxies.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - Galaxies - AIL - - - - - - - - - - - - - - - - - - - - {% include 'navbar.html' %} - -
-
-
-

Galaxies

-
- -
- - - - - - - - - - - - - - - - {% for type in all_type %} - - - - - - - - - {% endfor %} - - -
NameDescriptionNamespaceVersionEnabledActive Tags
- {{ name[loop.index0] }} -
- -
-
{{ description[loop.index0] }}{{ namespace[loop.index0] }}{{ version[loop.index0] }} - {% if enabled[loop.index0] %} -
Enabled
-
- {% endif %} - {% if not enabled[loop.index0] %} -
Disabled
-
- {% endif %} -
-
{{ n_tags[loop.index0] }}
- Active Tags {{ n_tags[loop.index0] }} -
- -
- - - - - - - - diff --git a/var/www/modules/Tags/templates/header_Tags.html b/var/www/modules/Tags/templates/header_Tags.html deleted file mode 100644 index 58d001fa..00000000 --- a/var/www/modules/Tags/templates/header_Tags.html +++ /dev/null @@ -1 +0,0 @@ -
  • Tags
  • diff --git a/var/www/modules/Tags/templates/tag_galaxy_info.html b/var/www/modules/Tags/templates/tag_galaxy_info.html deleted file mode 100644 index 7f60e2e8..00000000 --- a/var/www/modules/Tags/templates/tag_galaxy_info.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - Galaxy Tag Info - AIL - - - - - - - - - - - - - - - - - - - - {% include 'navbar.html' %} - -
    - - - -
    -
    {{ title }} - {% if active %} - Enabled - {% endif %} - {% if not active %} - Disabled - {% endif %} -
    -
    - {{ description }} -

    - Source: {{ source }} - {% if metadata %} -
    -
    Metadata : -
      - {% for meta in list_metadata %} -
    • {{ meta }}
    • - {% endfor %} -
    -
    -
    - {% endif %} - {% if bool_synonyms %} -

    -
      -
    • synonyms :
    • - {% for synonym in synonyms %} -
    • {{ synonym }}
    • - {% endfor %} -
    - {% endif %} -
    -
    - - -
    - - - - - - - - diff --git a/var/www/modules/Tags/templates/taxonomies.html b/var/www/modules/Tags/templates/taxonomies.html deleted file mode 100644 index 22090dcd..00000000 --- a/var/www/modules/Tags/templates/taxonomies.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - Taxonomies - AIL - - - - - - - - - - - - - - - - - - - - {% include 'navbar.html' %} - -
    -
    -
    -

    Taxonomies

    -
    - -
    - - - - - - - - - - - - - - - {% for name in all_name %} - - - - - - - - {% endfor %} - - -
    NameDescriptionVersionEnabledActive Tags
    {{ name }}{{ description[loop.index0] }}{{ version[loop.index0] }} - {% if enabled[loop.index0] %} -
    Enabled
    -
    - {% endif %} - {% if not enabled[loop.index0] %} -
    Disabled
    -
    - {% endif %} -
    -
    {{ n_tags[loop.index0] }}
    - Active Tags {{ n_tags[loop.index0] }} -
    - -
    - - - - - - - - diff --git a/var/www/templates/modals/add_tags.html b/var/www/templates/modals/add_tags.html index 17d80c3b..a9c045a4 100644 --- a/var/www/templates/modals/add_tags.html +++ b/var/www/templates/modals/add_tags.html @@ -70,7 +70,7 @@ var ltags; var ltagsgalaxies; -$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}", +$.getJSON("{{ url_for('tags_ui.get_all_taxonomies_customs_tags') }}", function(data) { ltags = $('#ltags').tagSuggest({ @@ -80,7 +80,7 @@ $.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}", }); }); -$.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}", +$.getJSON("{{ url_for('tags_ui.tag_galaxies_tags_enabled_json') }}", function(data) { ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({ @@ -92,14 +92,14 @@ $.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}", jQuery("#all-tags-taxonomies").click(function(e){ //change input tags list - $.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}", + $.getJSON("{{ url_for('tags_ui.get_all_taxonomies_customs_tags') }}", function(data) { ltags.setData(data) }); }); jQuery("#all-tags-galaxies").click(function(e){ - $.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}", + $.getJSON("{{ url_for('tags_ui.tag_galaxies_tags_enabled_json') }}", function(data) { ltagsgalaxies.setData(data) }); @@ -107,7 +107,7 @@ jQuery("#all-tags-galaxies").click(function(e){ {% for taxo in modal_add_tags['active_taxonomies'] %} jQuery("#{{ taxo }}-id{{ loop.index0 }}").click(function(e){ - $.getJSON("{{ url_for('Tags.get_tags_taxonomie') }}?taxonomie={{ taxo }}", + $.getJSON("{{ url_for('tags_ui.tag_taxonomie_tags_enabled_json') }}?taxonomie={{ taxo }}", function(data) { ltags.setData(data) }); @@ -116,7 +116,7 @@ jQuery("#all-tags-galaxies").click(function(e){ {% for galaxy in modal_add_tags['active_galaxies'] %} jQuery("#{{ galaxy }}-idgalax{{ loop.index0 }}").click(function(e){ - $.getJSON("{{ url_for('Tags.get_tags_galaxy') }}?galaxy={{ galaxy }}", + $.getJSON("{{ url_for('tags_ui.tag_galaxy_tags_enabled_json') }}?galaxy={{ galaxy }}", function(data) { ltagsgalaxies.setData(data) });