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 • 8.01 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 style="overflow: hidden;">
20
<dialog id="sidenav" class="sheet-left">
21
<x-frame style="--width: 320px; --margin: 0;">
22
<article class="card">
23
<section class="card-main">
24
<nav class="sidenav">
25
<ul>
26
{% if logged_in_user %}
27
<li><a href="/{{ logged_in_user }}">
28
<img src="/info/{{ logged_in_user }}/avatar" class="avatar" style="width: 1em; height: 1em;">
29
{{ logged_in_user }}
30
</a></li>
31
<li><a href="/notifications">
32
<iconify-icon icon="ic:baseline-inbox" data-badge="{{ unread }}"></iconify-icon>
33
Notifications
34
</a></li>
35
<li><a href="/newrepo">
36
<iconify-icon icon="mdi:folder-plus"></iconify-icon>
37
Create repository
38
</a></li>
39
<li><a href="/favourites">
40
<iconify-icon icon="mdi:star"></iconify-icon>
41
Your favourites
42
</a></li>
43
<li><a href="/settings">
44
<iconify-icon icon="mdi:cog"></iconify-icon>
45
Settings
46
</a></li>
47
<li><a href="/logout">
48
<iconify-icon icon="mdi:logout"></iconify-icon>
49
Log out
50
</a></li>
51
{% else %}
52
<li><a href="/accounts">
53
<iconify-icon icon="mdi:account"></iconify-icon>
54
Log in or sign up
55
</a></li>
56
{% endif %}
57
</ul>
58
</nav>
59
</section>
60
</article>
61
</x-frame>
62
</dialog>
63
{% block dialogs %}
64
{% endblock %}
65
<x-vbox class="nopad" style="align-items: stretch; height: 100vh;">
66
<header>
67
<nav id="global-nav" class="navbar" style="padding-right: 0; justify-content: flex-start;">
68
<a href="javascript:document.getElementById('sidenav').showModal();" id="sidenav-trigger">
69
<iconify-icon icon="mdi:menu"></iconify-icon>
70
</a>
71
<ul class="breadcrumbs-list">
72
<li><a href="/">roundabout</a></li>
73
{% block breadcrumbs %}{% endblock %}
74
</ul>
75
<div class="flexible-space" id="navbar-separator"></div>
76
{% if logged_in_user %}
77
<a href="/{{ logged_in_user }}">
78
<img src="/info/{{ logged_in_user }}/avatar" class="avatar" style="width: 1em; height: 1em;">
79
{{ logged_in_user }}
80
</a>
81
<a href="/notifications">
82
<iconify-icon icon="ic:baseline-inbox" data-badge="{{ unread }}"></iconify-icon>
83
</a>
84
<a href="/newrepo">
85
<iconify-icon icon="mdi:folder-plus" title="Create repository"></iconify-icon>
86
</a>
87
<a href="/favourites">
88
<iconify-icon icon="mdi:star" title="Favourites"></iconify-icon>
89
</a>
90
<a href="/settings">
91
<iconify-icon icon="mdi:cog" title="User settings"></iconify-icon>
92
</a>
93
<a href="/logout">
94
<iconify-icon icon="mdi:logout" title="Log out"></iconify-icon>
95
</a>
96
{% else %}
97
<a href="/accounts">Log in or sign up</a>
98
{% endif %}
99
</nav>
100
</header>
101
<x-hbox class="flexible-space nopad" style="width: 100%; overflow: hidden; align-items: strech;">
102
<nav id="repo-nav" class="navrail" style="max-height: 100%; flex: 0 0 var(--width-navrail);">
103
{% block nav %}
104
{% endblock %}
105
</nav>
106
<x-vbox style="overflow: auto; scrollbar-gutter: auto; scrollbar-color: #000000; flex: 1 1 auto; max-height: calc(100vh - var(--height-navbar));">
107
<main>
108
{% block content %}
109
{% endblock %}
110
</main>
111
<footer>
112
{{ Markup(config.footer) }}
113
</footer>
114
</x-vbox>
115
</x-hbox>
116
</x-vbox>
117
{% with messages = get_flashed_messages(with_categories=true) %}
118
<ol class="toast-container">
119
{% for category, message in messages %}
120
<li
121
style="
122
{% if category %}
123
background-color:
124
{% if category == 'error' %}var(--color-error)
125
{% elif category == 'alert' %}var(--color-alert)
126
{% elif category == 'info' %}var(--color-info)
127
{% elif category == 'success' %}var(--color-success)
128
{% endif %};
129
color:
130
{% if category == 'error' %}var(--color-error-text)
131
{% elif category == 'alert' %}var(--color-alert-text)
132
{% elif category == 'info' %}var(--color-info-text)
133
{% elif category == 'success' %}var(--color-success-text)
134
{% endif %};
135
{% endif %}"
136
>
137
{% if category | split | first == "task" %}
138
{{ message }}
139
{% else %}
140
{{ message }}
141
{% endif %}
142
<x-buttonbox>
143
<button class="button-flat" onclick="removeToast()" style="color: inherit !important;">Close</button>
144
</x-buttonbox>
145
</li>
146
{% endfor %}
147
</ol>
148
{% endwith %}
149
</body>
150
<script src="/static/ripples.js"></script>
151
<script src="/static/efficient-ui/dialogs.js"></script>
152
<script src="/static/efficient-ui/toasts.js"></script>
153
{% block scripts %}
154
{% endblock %}
155
</html>