By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 default.html

View raw Download
text/html • 4.94 kiB
HTML document, ASCII text
        
            
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
{% block head %}
5
<link rel="stylesheet" href="/static/style.css">
6
<title>{% block title %}Roundabout{% endblock %}</title>
7
<link rel="apple-touch-icon" sizes="512x512" href="/static/apple-touch-icon.png">
8
<link rel="manifest" href="/static/site.webmanifest">
9
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#3f51b5">
10
<link rel="shortcut icon" href="/static/favicon.ico">
11
<meta name="apple-mobile-web-app-title" content="Roundabout">
12
<meta name="application-name" content="Roundabout">
13
<meta name="theme-color" content="#37474f">
14
<link rel="shortcut icon" href="/static/logo.svg">
15
<script src="https://code.iconify.design/iconify-icon/1.0.7/iconify-icon.min.js"></script>
16
<meta name="viewport" content="width=device-width, initial-scale=1" />
17
{% endblock %}
18
</head>
19
<body>
20
<header>
21
<nav id="global-nav" class="breadcrumbs">
22
<ul>
23
<li><a href="/">roundabout</a></li>
24
{% block breadcrumbs %}{% endblock %}
25
</ul>
26
<x-hbox style="--gap: 2ch;">
27
{% if loggedInUser %}
28
<a href="/newrepo">
29
<x-hbox style="gap: 0.75ch;" class="box-center">
30
<iconify-icon icon="mdi:folder-plus"></iconify-icon>
31
Create
32
</x-hbox>
33
</a>
34
<a href="/notifications">
35
<x-hbox style="gap: 0.75ch;" class="box-center">
36
<iconify-icon icon="ic:baseline-inbox"></iconify-icon>
37
</x-hbox>
38
</a>
39
<a href="/alerts">
40
<x-hbox style="gap: 0.75ch;" class="box-center">
41
<iconify-icon icon="ic:baseline-info"></iconify-icon>
42
</x-hbox>
43
</a>
44
<a href="/{{ loggedInUser }}">
45
<x-hbox style="gap: 0.75ch;" class="box-center">
46
<img src="/info/{{ loggedInUser }}/avatar" class="avatar" style="width: 1em; height: 1em;">
47
{{ loggedInUser }}
48
</x-hbox>
49
</a>
50
<a href="/logout">
51
<x-hbox style="gap: 0.75ch;" class="box-center">
52
<iconify-icon icon="mdi:logout" title="Log out"></iconify-icon>
53
</x-hbox>
54
</a>
55
<a href="/settings">
56
<x-hbox style="gap: 0.75ch;" class="box-center">
57
<iconify-icon icon="mdi:cog" title="User settings"></iconify-icon>
58
</x-hbox>
59
</a>
60
{% else %}
61
<a href="/accounts">Log in or sign up</a>
62
{% endif %}
63
</x-hbox>
64
</nav>
65
{% block nav %}{% endblock %}
66
</header>
67
<main>
68
{% block content %}{% endblock %}
69
</main>
70
{% with messages = get_flashed_messages(with_categories=true) %}
71
<ol class="toast-container">
72
{% for category, message in messages %}
73
<li style="
74
{% if category %}
75
background-color:
76
{% if category == 'error' %}var(--color-error)
77
{% elif category == 'alert' %}var(--color-alert)
78
{% elif category == 'info' %}var(--color-info)
79
{% elif category == 'success' %}var(--color-success)
80
{% endif %};
81
color:
82
{% if category == 'error' %}var(--color-error-text)
83
{% elif category == 'alert' %}var(--color-alert-text)
84
{% elif category == 'info' %}var(--color-info-text)
85
{% elif category == 'success' %}var(--color-success-text)
86
{% endif %};
87
{% endif %}"
88
>
89
{{ message }}
90
<x-buttonbox>
91
<button class="button-flat" onclick="removeToast()" style="color: inherit !important;">Close</button>
92
</x-buttonbox>
93
</li>
94
{% endfor %}
95
</ol>
96
{% endwith %}
97
</body>
98
<script src="/static/ripples.js"></script>
99
<script src="/static/efficient-ui/dialogs.js"></script>
100
<script src="/static/efficient-ui/toasts.js"></script>
101
</html>