From 6a56aa9fde4f4b4175bf01095ee1bc2e3c746358 Mon Sep 17 00:00:00 2001 From: FyloZ Date: Thu, 8 Oct 2020 23:55:07 -0400 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20ic=C3=B4nes=20pour=20les=20recett?= =?UTF-8?q?es=20non=20approuv=C3=A9es.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/css/recipesList.css | 10 ++++------ src/main/resources/static/icons/bucket.svg | 5 +++++ src/main/resources/static/js/recipeResearch.js | 10 +++++++--- src/main/resources/templates/fragments.html | 4 ++++ src/main/resources/templates/index.html | 9 ++++----- src/main/resources/templates/recipe/editor.html | 4 ++++ src/main/resources/templates/recipe/remover.html | 4 ++++ 7 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 src/main/resources/static/icons/bucket.svg diff --git a/src/main/resources/static/css/recipesList.css b/src/main/resources/static/css/recipesList.css index 7aa0cbc..3033842 100644 --- a/src/main/resources/static/css/recipesList.css +++ b/src/main/resources/static/css/recipesList.css @@ -32,12 +32,10 @@ h1 { max-width: 400px; } -.descriptionCell { - /*border-right-color: #e6e6e6;*/ - /*border-right-style: solid;*/ - /*border-right-width: 2px;*/ -} - .researchEnabled .companyTab:not(.researchResult), .researchEnabled .recipeRow:not(.researchResult) { display: none; } + +.iconsColumn img { + margin-top: 5px; +} diff --git a/src/main/resources/static/icons/bucket.svg b/src/main/resources/static/icons/bucket.svg new file mode 100644 index 0000000..7fd119b --- /dev/null +++ b/src/main/resources/static/icons/bucket.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/main/resources/static/js/recipeResearch.js b/src/main/resources/static/js/recipeResearch.js index db650ae..eed1467 100644 --- a/src/main/resources/static/js/recipeResearch.js +++ b/src/main/resources/static/js/recipeResearch.js @@ -1,9 +1,13 @@ $(() => { $(".recipeRow").each(function () { + const iconsColumn = $(this).find(".iconsColumn") if (!$(this).data("approbationdate")) { - const icon = $(this).find(".icon"); - icon.removeAttr("hidden"); - icon.attr({title: recipeNotApproved}) + const icon = $("") + .attr({ + src: recipeNotApprovedIconPath, + title: recipeNotApproved + }) + iconsColumn.append(icon) } }); }); diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html index a56c4a9..1163e96 100644 --- a/src/main/resources/templates/fragments.html +++ b/src/main/resources/templates/fragments.html @@ -219,5 +219,9 @@ const printingMessage = formatMessage("[[#{recipe.print.printing}]]"); + + diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 85c85fa..fcdb361 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -28,8 +28,8 @@ - - + + @@ -40,9 +40,7 @@ - - + @@ -54,6 +52,7 @@ +