Adding webapp HTML template files

This commit is contained in:
Théo Piboubès
2015-08-20 00:55:28 +02:00
parent b25b533783
commit a15eaee258
2 changed files with 18 additions and 0 deletions

15
rtv/templates/auth.html Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>RTV OAuth</title>
{% if error == 'access_denied' %}
<h3 style="color: red">Declined rtv access</h3>
<p>You chose to stop <span style="font-weight: bold">Reddit Terminal Viewer</span> from accessing your account, it will continue in unauthenticated mode.<br>
You can close this page.</p>
{% elif error != 'error_placeholder' %}
<h3 style="color: red">Error : {{ error }}</h3>
{% elif (state == 'state_placeholder' or code == 'code_placeholder') and error == 'error_placeholder' %}
<h3>Wait...</h3>
<p>This page is supposed to be a Reddit OAuth callback. You can't just come here hands in the pocket!</p>
{% else %}
<h3 style="color: green">Allowed rtv access</h3>
<p><span style="font-weight: bold">Reddit Terminal Viewer</span> will now log in. You can close this page.</p>
{% end %}

3
rtv/templates/home.html Normal file
View File

@@ -0,0 +1,3 @@
<!DOCTYPE html>
<title>OAuth helper</title>
<h1>Reddit Terminal Viewer OAuth helper</h1>