aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-08-24 19:05:24 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-08-24 19:05:24 -0700
commit00e4951fd089353d54ce193c80aa75d2e2bcc073 (patch)
tree2a27e8fc7d7cd28ce5bac6cd2fdf40b284a7614e
parent2435bcaeb103f0f03b64edb7af4c3c64bdcd8877 (diff)
downloadyt-local-00e4951fd089353d54ce193c80aa75d2e2bcc073.tar.lz
yt-local-00e4951fd089353d54ce193c80aa75d2e2bcc073.tar.xz
yt-local-00e4951fd089353d54ce193c80aa75d2e2bcc073.zip
Layout: Add links to homepage
-rw-r--r--youtube/__init__.py2
-rw-r--r--youtube/templates/home.html22
2 files changed, 23 insertions, 1 deletions
diff --git a/youtube/__init__.py b/youtube/__init__.py
index e620827..ded6382 100644
--- a/youtube/__init__.py
+++ b/youtube/__init__.py
@@ -4,4 +4,4 @@ yt_app.url_map.strict_slashes = False
@yt_app.route('/')
def homepage():
- return flask.render_template('base.html', title="Youtube local")
+ return flask.render_template('home.html', title="Youtube local")
diff --git a/youtube/templates/home.html b/youtube/templates/home.html
new file mode 100644
index 0000000..c7f7666
--- /dev/null
+++ b/youtube/templates/home.html
@@ -0,0 +1,22 @@
+{% set page_title = title %}
+{% extends "base.html" %}
+{% block style %}
+ ul {
+ background-color: #dadada;
+ padding: 20px;
+ width: 400px;
+ margin: auto;
+ margin-top: 20px;
+ }
+ li {
+ margin-bottom: 10px;
+ }
+{% endblock style %}
+{% block main %}
+ <ul>
+ <li><a href="/youtube.com/playlists">Local playlists</a></li>
+ <li><a href="/youtube.com/subscriptions">Subscriptions</a></li>
+ <li><a href="/youtube.com/subscription_manager">Subscription Manager</a></li>
+ <li><a href="/youtube.com/settings">Settings</a></li>
+ </ul>
+{% endblock main %}