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 • 5.25 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" data-badge="{{ unread }}">
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="/{{ loggedInUser }}">
40
<x-hbox style="gap: 0.75ch;" class="box-center">
41
<img src="/info/{{ loggedInUser }}/avatar" class="avatar" style="width: 1em; height: 1em;">
42
{{ loggedInUser }}
43
</x-hbox>
44
</a>
45
<a href="/logout">
46
<x-hbox style="gap: 0.75ch;" class="box-center">
47
<iconify-icon icon="mdi:logout" title="Log out"></iconify-icon>
48
</x-hbox>
49
</a>
50
<a href="/settings">
51
<x-hbox style="gap: 0.75ch;" class="box-center">
52
<iconify-icon icon="mdi:cog" title="User settings"></iconify-icon>
53
</x-hbox>
54
</a>
55
{% else %}
56
<a href="/accounts">Log in or sign up</a>
57
{% endif %}
58
</x-hbox>
59
</nav>
60
{% block nav %}{% endblock %}
61
</header>
62
<main>
63
{% block content %}{% endblock %}
64
</main>
65
<footer>
66
<x-hbox>
67
<a href="/about">About</a>
68
<a href="/help">Help</a>
69
</x-hbox>
70
<hr>
71
<p>
72
Alpha testing. Not for production use.
73
</p>
74
<p>
75
Application &copy; 2023 Roundabout developers. Content belongs to the repository contributors,
76
unless otherwise stated.
77
</p>
78
<p>
79
<a href="/about">Powered by Roundabout (alpha testing)</a>
80
</p>
81
</footer>
82
{% with messages = get_flashed_messages(with_categories=true) %}
83
<ol class="toast-container">
84
{% for category, message in messages %}
85
<li style="
86
{% if category %}
87
background-color:
88
{% if category == 'error' %}var(--color-error)
89
{% elif category == 'alert' %}var(--color-alert)
90
{% elif category == 'info' %}var(--color-info)
91
{% elif category == 'success' %}var(--color-success)
92
{% endif %};
93
color:
94
{% if category == 'error' %}var(--color-error-text)
95
{% elif category == 'alert' %}var(--color-alert-text)
96
{% elif category == 'info' %}var(--color-info-text)
97
{% elif category == 'success' %}var(--color-success-text)
98
{% endif %};
99
{% endif %}"
100
>
101
{{ message }}
102
<x-buttonbox>
103
<button class="button-flat" onclick="removeToast()" style="color: inherit !important;">Close</button>
104
</x-buttonbox>
105
</li>
106
{% endfor %}
107
</ol>
108
{% endwith %}
109
</body>
110
<script src="/static/ripples.js"></script>
111
<script src="/static/efficient-ui/dialogs.js"></script>
112
<script src="/static/efficient-ui/toasts.js"></script>
113
</html>