From e331ff25cb83e17577acf4d04133aa9462aadc64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thirion=20Aur=C3=A9lien?= Date: Tue, 25 Jun 2019 09:38:40 +0200 Subject: [PATCH 1/7] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9f9d8d4d..eea6510f 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,13 @@ To upgrade from an existing AIL installation, you have to launch [python3_upgrad Docker Quick Start (Ubuntu 16.04 LTS) ------------ +:warning: +Not maintained at the moment. +If you are interested to get this running, please: + +Fork -> Branch -> PR + + 1. Install Docker ```bash sudo su From 9a883aef2300cb1502725c44baad536f85f8931b Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 25 Jun 2019 14:11:30 +0200 Subject: [PATCH 2/7] chg: [UI submit items] bootstrap 4 migration --- .../modules/PasteSubmit/Flask_PasteSubmit.py | 6 +- .../PasteSubmit/templates/PasteSubmit.html | 203 ---------- .../PasteSubmit/templates/submit_items.html | 358 +++++++++++++++++ .../PasteSubmit/templates/submiting.html | 361 ------------------ .../templates/item_submit/menu_sidebar.html | 13 + 5 files changed, 374 insertions(+), 567 deletions(-) delete mode 100644 var/www/modules/PasteSubmit/templates/PasteSubmit.html create mode 100644 var/www/modules/PasteSubmit/templates/submit_items.html delete mode 100644 var/www/modules/PasteSubmit/templates/submiting.html create mode 100644 var/www/templates/item_submit/menu_sidebar.html diff --git a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py index 6b7f5360..68f0952d 100644 --- a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py +++ b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py @@ -280,7 +280,7 @@ def PasteSubmit_page(): #active galaxies active_galaxies = r_serv_tags.smembers('active_galaxies') - return render_template("PasteSubmit.html", + return render_template("submiting.html", active_taxonomies = active_taxonomies, active_galaxies = active_galaxies) @@ -353,7 +353,7 @@ def submit(): launch_submit(ltags, ltagsgalaxies, paste_content, UUID, password ,True) - return render_template("submiting.html", + return render_template("submit_items.html", active_taxonomies = active_taxonomies, active_galaxies = active_galaxies, UUID = UUID) @@ -376,7 +376,7 @@ def submit(): launch_submit(ltags, ltagsgalaxies, paste_content, UUID, password) - return render_template("submiting.html", + return render_template("submit_items.html", active_taxonomies = active_taxonomies, active_galaxies = active_galaxies, UUID = UUID) diff --git a/var/www/modules/PasteSubmit/templates/PasteSubmit.html b/var/www/modules/PasteSubmit/templates/PasteSubmit.html deleted file mode 100644 index 44058214..00000000 --- a/var/www/modules/PasteSubmit/templates/PasteSubmit.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - Submit Paste - AIL - - - - - - - - - - - - - - - - - - - - - {% include 'navbar.html' %} - -
-
- - - - -
- - - - -
-
Files submission -
-
- -
- - -
- -
- - -
-
-
- -
-
Tags : -
    -
  • - -
    - -
    - -
    - - -
    - -
  • -
  • - -
    - -
    - -
    - - -
    - -
  • -
-
-
- -
- -
- -
- -
- -
- - - - - -
- -
- - - - - - - - - - - - diff --git a/var/www/modules/PasteSubmit/templates/submit_items.html b/var/www/modules/PasteSubmit/templates/submit_items.html new file mode 100644 index 00000000..e419e599 --- /dev/null +++ b/var/www/modules/PasteSubmit/templates/submit_items.html @@ -0,0 +1,358 @@ + + + + + AIL-Framework + + + + + + + + + + + + + + + + + {% if UUID %} + + {% endif %} + + + {% include 'nav_bar.html' %} + +
+
+ + {% include 'item_submit/menu_sidebar.html' %} + +
+ +
+ + + + +
+
+ +
+
+ Files submission +
+
+ +
+ + +
+ +
+ + +
+
+
+ +
+
+ +
+
+ Tags : +
+
+ +
+ +
+ + + + +
+ +
+ + + + +
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + diff --git a/var/www/modules/PasteSubmit/templates/submiting.html b/var/www/modules/PasteSubmit/templates/submiting.html deleted file mode 100644 index f43a7b3d..00000000 --- a/var/www/modules/PasteSubmit/templates/submiting.html +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - - - Submit Paste - AIL - - - - - - - - - - - - - - - - - - - - - - - {% include 'navbar.html' %} - -
-
- - -
- - - - -
-
Files submission -
-
- -
- - -
- -
- - -
-
-
- -
-
Tags : -
    -
  • - -
    - -
    - -
    - - -
    - -
  • -
  • - -
    - -
    - -
    - - -
    - -
  • -
-
-
- -
- -
- -
- -
- -
- - - - - -
- -
- - - - - - - - - - - - - - - - - - - - diff --git a/var/www/templates/item_submit/menu_sidebar.html b/var/www/templates/item_submit/menu_sidebar.html new file mode 100644 index 00000000..51d36093 --- /dev/null +++ b/var/www/templates/item_submit/menu_sidebar.html @@ -0,0 +1,13 @@ +
+ + + + +
From 3357b855ded464170692fd582e03e7b0359d3ce1 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 25 Jun 2019 14:18:39 +0200 Subject: [PATCH 3/7] fix: [UI items_submit] add active tag + fix template name --- .../modules/PasteSubmit/Flask_PasteSubmit.py | 2 +- .../PasteSubmit/templates/submit_items.html | 24 +++++++++---------- var/www/templates/nav_bar.html | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py index 68f0952d..3b8ea8bd 100644 --- a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py +++ b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py @@ -280,7 +280,7 @@ def PasteSubmit_page(): #active galaxies active_galaxies = r_serv_tags.smembers('active_galaxies') - return render_template("submiting.html", + return render_template("submit_items.html", active_taxonomies = active_taxonomies, active_galaxies = active_galaxies) diff --git a/var/www/modules/PasteSubmit/templates/submit_items.html b/var/www/modules/PasteSubmit/templates/submit_items.html index e419e599..5c2081a5 100644 --- a/var/www/modules/PasteSubmit/templates/submit_items.html +++ b/var/www/modules/PasteSubmit/templates/submit_items.html @@ -169,7 +169,7 @@
- +
@@ -187,6 +187,7 @@ var ltags var ltagsgalaxies $(document).ready(function(){ + $("#page-items-submit").addClass("active"); $.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}", function(data) { @@ -198,20 +199,17 @@ $(document).ready(function(){ }); }); - $.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}", - function(data) { + $.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}", + function(data) { - ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({ - data: data, - maxDropHeight: 200, - name: 'ltagsgalaxies' - }); - }); + ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({ + data: data, + maxDropHeight: 200, + name: 'ltagsgalaxies' + }); + }); - activePage = "page-PasteSubmit" - $("#"+activePage).addClass("active"); - - $('#modalsubmit').modal({backdrop: 'static'}) + $('#modalsubmit').modal({backdrop: 'static'}) }); function toggle_sidebar(){ diff --git a/var/www/templates/nav_bar.html b/var/www/templates/nav_bar.html index 462c375f..2908b984 100644 --- a/var/www/templates/nav_bar.html +++ b/var/www/templates/nav_bar.html @@ -13,7 +13,7 @@ Home