From b2a88391de868d7df7f34f3ebe4a9b7b737c3232 Mon Sep 17 00:00:00 2001 From: Robin Krom Date: Mon, 26 Oct 2020 14:15:58 +0100 Subject: [PATCH] Made the "old version notice" less red. Worked hard to make the OAuth process work more reliable with less code in Greenshot, by using an Ajax request from getgreenshot.org --- _includes/oauth-code.html | 61 ++++++++++++++++++++++++++++++ _includes/oauth-out-of-bounds.html | 50 ------------------------ _includes/oauth.html | 20 ++++++++++ _includes/version-check.html | 13 ++++--- pages/authorize/dropbox.html | 9 +++++ pages/authorize/imgur.html | 9 +++++ pages/oauth/dropbox.html | 15 -------- pages/oauth/imgur.html | 15 -------- 8 files changed, 107 insertions(+), 85 deletions(-) create mode 100644 _includes/oauth-code.html delete mode 100644 _includes/oauth-out-of-bounds.html create mode 100644 _includes/oauth.html create mode 100644 pages/authorize/dropbox.html create mode 100644 pages/authorize/imgur.html delete mode 100644 pages/oauth/dropbox.html delete mode 100644 pages/oauth/imgur.html diff --git a/_includes/oauth-code.html b/_includes/oauth-code.html new file mode 100644 index 000000000..f4038eeef --- /dev/null +++ b/_includes/oauth-code.html @@ -0,0 +1,61 @@ + \ No newline at end of file diff --git a/_includes/oauth-out-of-bounds.html b/_includes/oauth-out-of-bounds.html deleted file mode 100644 index 8a463d528..000000000 --- a/_includes/oauth-out-of-bounds.html +++ /dev/null @@ -1,50 +0,0 @@ - \ No newline at end of file diff --git a/_includes/oauth.html b/_includes/oauth.html new file mode 100644 index 000000000..76b1d4197 --- /dev/null +++ b/_includes/oauth.html @@ -0,0 +1,20 @@ +{% include version-check.html %} + +
+ Trying to inform Greenshot about the {{ include.service }} authorization...

+
+ + + +{% include oauth-code.html %} + +

+ +
+ We are happy that you use Greenshot. If you like it, please consider to support the development of this open source screenshot tool with a donation.

+ {% include donate.html %} +
diff --git a/_includes/version-check.html b/_includes/version-check.html index 4eaba57b9..f693c4338 100644 --- a/_includes/version-check.html +++ b/_includes/version-check.html @@ -14,7 +14,7 @@ var release_blog_posts = new Array(); You are using the most recent version of Greenshot.
More information about this version can be found here.
-