[Flask] Web media downloader frontend.
1
{# -*- mode: web; -*- #}
2
3
<!doctypehtml>
4
5
<htmllang="en">
6
<head>
7
<metacharset="utf-8">
8
<metaname="viewport"content="width=device-width, initial-scale=1, shrink-to">
9
<title>mdl</title>
10
<metaname="author"content="Marius Peter">
11
<metaname="description"content="A draft page for mdl.">
12
<!-- <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}"> -->
13
<linkrel="stylesheet"href="{{ url_for('static', filename='styles/style.css') }}">
14
</head>
15
<body>
16
<navid="user">
17
<divstyle="display: flex;"
18
ul
19
liahref"https://apps.mlnp.fr"class"button"Apps/a/li
20
liahref"{{ url_for('main.home') }}"class"button"codemdl/code/a/li
21
/ul
22
h1{%blocktitle%}{%endblock%}/h1
23
/div
24
ul
25
{%ifcurrent_user.is_authenticated%}
26
liahref"{{ url_for('common.settings') }}"class"button"Settings/a/li
27
liahref"{{ url_for('auth.logout') }}"class"button"Logout/a/li
28
{%else%}
29
liahref"{{ url_for('auth.login') }}"class"button"Login/a/li
30
liahref"{{ url_for('auth.register') }}"class"button"Register/a/li
31
{%endif%}
32
/ul
33
/nav
34
divid"content"
35
{%blockcontent%}{%endblock%}
36
/div
37
{#Flashedmessagesaddedlast,sothattheyappearontopofthecontent.#}
38
{%withmessagesget_flashed_messages(with_categoriestrue)%}
39
{%ifmessages%}
40
divid"flash"
41
ul
42
{%forcategory,messageinmessages%}
43
liclass"alert alert-{{ category }}"{{message}}/li
44
{%endfor%}
45
/ul
46
/div
47
{%endif%}
48
{%endwith%}
49
!--scriptsrc"js/scripts.js"/script--
50
/body
51
/html
52