From 8d2f0298175c07575d002e307ae849976e2a347a Mon Sep 17 00:00:00 2001 From: xO-Tx Date: Tue, 13 Oct 2020 07:17:06 +0000 Subject: [PATCH] [IMP] web_unsplash : update unsplash messages The goal of this commit is to update all unsplash alert messages : - message : "unsplash key not found" - message : "search temporarily unavailable" - message : "unauthorized key" - message : "something went wrong" and replace them with cleaner content. task-2341558 closes odoo/odoo#59014 Signed-off-by: Quentin Smetz (qsm) --- .../static/src/scss/unsplash.scss | 11 --- .../static/src/xml/unsplash_image_widget.xml | 85 ++++++++++--------- .../views/web_unsplash_templates.xml | 1 - 3 files changed, 47 insertions(+), 50 deletions(-) delete mode 100644 addons/web_unsplash/static/src/scss/unsplash.scss diff --git a/addons/web_unsplash/static/src/scss/unsplash.scss b/addons/web_unsplash/static/src/scss/unsplash.scss deleted file mode 100644 index 9e0267c214d..00000000000 --- a/addons/web_unsplash/static/src/scss/unsplash.scss +++ /dev/null @@ -1,11 +0,0 @@ -.unsplash_error { - padding: 30px 0; - .access_key_box { - padding: 9px; - background-color: #fcfcfc; - border: 1px solid #ededee; - input { - min-width: 300px; - } - } -} diff --git a/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml b/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml index 092f12038bd..5f673e4d222 100644 --- a/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml +++ b/addons/web_unsplash/static/src/xml/unsplash_image_widget.xml @@ -27,58 +27,67 @@ -

-
- -
- -
- Generate an access key -
- -
- How to find my Unsplash Application ID? - +
+

+

+ +
+
+ + Get an Access key + and paste it here: + + +
+
+ + and paste + Application ID + here: + + +
+ +
+
-
+ - - - Unsplash requires an access key and an application ID - + + Setup Unsplash to access royalty free photos. + -

+ Search is temporarily unavailable -

-
+ + The max number of searches is exceeded. Please retry in an hour or extend to a better account. -
-
- - - - Unauthorized Key - - - Please check your Unsplash access key and application ID. - - -

- Something went wrong -

-
- Please check your internet connection or contact administrator. -
+ + + Unauthorized Key + + + Please check your Unsplash access key and application ID. + + -
+ + + Something went wrong + + + Please check your internet connection or contact administrator. + + +
diff --git a/addons/web_unsplash/views/web_unsplash_templates.xml b/addons/web_unsplash/views/web_unsplash_templates.xml index e6201eaaba5..aa2001f82d6 100644 --- a/addons/web_unsplash/views/web_unsplash_templates.xml +++ b/addons/web_unsplash/views/web_unsplash_templates.xml @@ -2,7 +2,6 @@