default.html
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 %}gitme{% 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="#00bcd4"> 10<link rel="shortcut icon" href="/static/favicon.ico"> 11<meta name="apple-mobile-web-app-title" content="gitme"> 12<meta name="application-name" content="gitme"> 13<meta name="theme-color" content="#ffffff"> 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="/">gitme</a></li> 24{% block breadcrumbs %}{% endblock %} 25</ul> 26<x-hbox style="--gap: 2ch;"> 27{% if loggedInUser %} 28<a href="/{{ loggedInUser }}">{{ loggedInUser }}</a> 29<a href="/logout">Logout</a> 30<a href="/settings">Preferences</a> 31{% else %} 32<a href="/accounts">Log in or sign up</a> 33{% endif %} 34</x-hbox> 35</nav> 36{% block nav %}{% endblock %} 37</header> 38<main> 39{% block content %}{% endblock %} 40</main> 41{% with messages = get_flashed_messages(with_categories=true) %} 42<ol class="toast-container"> 43{% for category, message in messages %} 44<li style=" 45{% if category %} 46background-color: 47{% if category == 'error' %}var(--color-error) 48{% elif category == 'alert' %}var(--color-alert) 49{% elif category == 'info' %}var(--color-info) 50{% elif category == 'success' %}var(--color-success) 51{% endif %}; 52color: 53{% if category == 'error' %}var(--color-error-text) 54{% elif category == 'alert' %}var(--color-alert-text) 55{% elif category == 'info' %}var(--color-info-text) 56{% elif category == 'success' %}var(--color-success-text) 57{% endif %}; 58{% endif %}" 59> 60{{ message }} 61<x-buttonbox> 62<button class="button-flat" onclick="removeToast()" style="color: inherit !important;">Close</button> 63</x-buttonbox> 64</li> 65{% endfor %} 66</ol> 67{% endwith %} 68</body> 69<script src="/static/ripples.js"></script> 70<script src="/static/efficient-ui/dialogs.js"></script> 71<script src="/static/efficient-ui/toasts.js"></script> 72</html>