From a15eaee258d10fe58968daa9b7c6b1eaf639554b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Piboub=C3=A8s?= Date: Thu, 20 Aug 2015 00:55:28 +0200 Subject: [PATCH] Adding webapp HTML template files --- rtv/templates/auth.html | 15 +++++++++++++++ rtv/templates/home.html | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 rtv/templates/auth.html create mode 100644 rtv/templates/home.html diff --git a/rtv/templates/auth.html b/rtv/templates/auth.html new file mode 100644 index 0000000..4cff2b6 --- /dev/null +++ b/rtv/templates/auth.html @@ -0,0 +1,15 @@ + +RTV OAuth +{% if error == 'access_denied' %} +

Declined rtv access

+

You chose to stop Reddit Terminal Viewer from accessing your account, it will continue in unauthenticated mode.
+ You can close this page.

+{% elif error != 'error_placeholder' %} +

Error : {{ error }}

+{% elif (state == 'state_placeholder' or code == 'code_placeholder') and error == 'error_placeholder' %} +

Wait...

+

This page is supposed to be a Reddit OAuth callback. You can't just come here hands in the pocket!

+{% else %} +

Allowed rtv access

+

Reddit Terminal Viewer will now log in. You can close this page.

+{% end %} diff --git a/rtv/templates/home.html b/rtv/templates/home.html new file mode 100644 index 0000000..0b9ebf5 --- /dev/null +++ b/rtv/templates/home.html @@ -0,0 +1,3 @@ + +OAuth helper +

Reddit Terminal Viewer OAuth helper