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.81 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 logged_in_user %}
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="/{{ logged_in_user }}">
40
<x-hbox style="gap: 0.75ch;" class="box-center">
41
<img src="/info/{{ logged_in_user }}/avatar" class="avatar" style="width: 1em; height: 1em;">
42
{{ logged_in_user }}
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="/favourites">
51
<x-hbox style="gap: 0.75ch;" class="box-center">
52
<iconify-icon icon="mdi:star" title="Favourites"></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
<footer>
71
<x-hbox>
72
<a href="/help">Help</a>
73
<a href="mailto:{{ config.CONTACT_EMAIL }}">Contact Us</a>
74
</x-hbox>
75
<hr>
76
<p>
77
Alpha testing. Not for production use.
78
</p>
79
<p>
80
Application &copy; 2023 Roundabout developers. Content belongs to the repository contributors,
81
unless otherwise stated.
82
</p>
83
<p>
84
<a href="/about">Powered by Roundabout (alpha testing)</a>
85
</p>
86
</footer>
87
{% with messages = get_flashed_messages(with_categories=true) %}
88
<ol class="toast-container">
89
{% for category, message in messages %}
90
<li
91
style="
92
{% if category %}
93
background-color:
94
{% if category == 'error' %}var(--color-error)
95
{% elif category == 'alert' %}var(--color-alert)
96
{% elif category == 'info' %}var(--color-info)
97
{% elif category == 'success' %}var(--color-success)
98
{% endif %};
99
color:
100
{% if category == 'error' %}var(--color-error-text)
101
{% elif category == 'alert' %}var(--color-alert-text)
102
{% elif category == 'info' %}var(--color-info-text)
103
{% elif category == 'success' %}var(--color-success-text)
104
{% endif %};
105
{% endif %}"
106
>
107
{% if category | split | first == "task" %}
108
{{ message }}
109
{% else %}
110
{{ message }}
111
{% endif %}
112
<x-buttonbox>
113
<button class="button-flat" onclick="removeToast()" style="color: inherit !important;">Close</button>
114
</x-buttonbox>
115
</li>
116
{% endfor %}
117
</ol>
118
{% endwith %}
119
</body>
120
<script src="/static/ripples.js"></script>
121
<script src="/static/efficient-ui/dialogs.js"></script>
122
<script src="/static/efficient-ui/toasts.js"></script>
123
{% block scripts %}
124
{% endblock %}
125
</html>