Layout: Add links to homepage
This commit is contained in:
parent
2435bcaeb1
commit
00e4951fd0
@ -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")
|
||||
|
22
youtube/templates/home.html
Normal file
22
youtube/templates/home.html
Normal file
@ -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 %}
|
Loading…
x
Reference in New Issue
Block a user