diff --git a/wallabag_kindle_consumer/static/css/custom.css b/wallabag_kindle_consumer/static/css/custom.css new file mode 100644 index 0000000..f5bf1c3 --- /dev/null +++ b/wallabag_kindle_consumer/static/css/custom.css @@ -0,0 +1,15 @@ +html { + position: relative; + min-height: 100%; +} +body { + margin-bottom: 80px; /* Margin bottom by footer height */ +} +.footer { + position: absolute; + bottom: 0; + width: 100%; + height: 60px; /* Set the fixed height of the footer here */ + line-height: 60px; /* Vertically center the text there */ + background-color: #f5f5f5; +} diff --git a/wallabag_kindle_consumer/templates/base.html b/wallabag_kindle_consumer/templates/base.html new file mode 100644 index 0000000..55a6ce3 --- /dev/null +++ b/wallabag_kindle_consumer/templates/base.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + Wallabag Kindle Consumer + + +
+ +

Walabag Kindle Consumer

+ +

This transfers all articles tagged with {{ tags|join(", ") }} in {{ wallabag_host }} + to the given kindle account.

+ + {% block body %}{% endblock %} + + +
+ + + + + + + + diff --git a/wallabag_kindle_consumer/templates/index.html b/wallabag_kindle_consumer/templates/index.html new file mode 100644 index 0000000..3b9b52f --- /dev/null +++ b/wallabag_kindle_consumer/templates/index.html @@ -0,0 +1,32 @@ +{% extends 'base.html' %} + +{% import 'macros.html' as forms %} + +{% block body %} + +
+
Add or edit an account
+
+
+
+ {{ forms.input('user', "Username", description='Your wallabag username at ' + wallabag_host) }} + {{ forms.input('password', "Password", type='password', description='Your wallabag password at ' + wallabag_host + ". The password will not be stored") }} +
+
+ {{ forms.input('clientId', "Client id", description='A valid client id') }} + {{ forms.input('clientSecret', "Client secret", description='A valid client secret ' + wallabag_host) }} +
+
+ {{ forms.input('kindleEmail', "Kindle Email", type='email', description='Your kindle email addess ' + wallabag_host) }} + {{ forms.input('notifyEmail', "Alt. Email",type='email', description='An alternative email where we can send any problems. ' + wallabag_host) }} +
+
+
+ +
+
+
+
+
+ +{% endblock %} \ No newline at end of file diff --git a/wallabag_kindle_consumer/templates/macros.html b/wallabag_kindle_consumer/templates/macros.html new file mode 100644 index 0000000..156d1f6 --- /dev/null +++ b/wallabag_kindle_consumer/templates/macros.html @@ -0,0 +1,7 @@ +{% macro input(id, label, type='text', description='', placeholder='') %} +
+ + + {{ description }} +
+{% endmacro %} \ No newline at end of file diff --git a/wallabag_kindle_consumer/templates/relogin.html b/wallabag_kindle_consumer/templates/relogin.html new file mode 100644 index 0000000..4600914 --- /dev/null +++ b/wallabag_kindle_consumer/templates/relogin.html @@ -0,0 +1,25 @@ +{% extends 'base.html' %} + +{% import 'macros.html' as forms %} + +{% block body %} + +
+
Fetch a new Wallabag API token
+
+
+
+ {{ forms.input('user', "Username", description='Your wallabag username at ' + wallabag_host) }} + {{ forms.input('password', "Password", type='password', description='Your wallabag password at ' + wallabag_host + ". The password will not be stored") }} +
+ +
+
+ +
+
+
+
+
+ +{% endblock %} \ No newline at end of file