mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Remove the Referer (sic) HTTP request header from external requests (e.g. to the image CDNs). The charset directive must be included in the first TCP packet. It should be set at the very top of the document. Grouping document mode metas and descriptive metadata in separate groups.
89 lines
3.7 KiB
Django/Jinja
89 lines
3.7 KiB
Django/Jinja
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="referrer" content="same-origin" />
|
|
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<meta name="description" content='Maloja is a self-hosted music scrobble server.' />
|
|
|
|
<meta name="color-scheme" content="dark" />
|
|
<meta name="darkreader" content="wat" />
|
|
|
|
<link rel="stylesheet" href="/style.css" />
|
|
<link rel="stylesheet" href="/static/css/themes/{{ settings.theme }}.css" />
|
|
|
|
<script src="/search.js"></script>
|
|
<script src="/neopolitan.js"></script>
|
|
<script src="/upload.js"></script>
|
|
|
|
<link rel="preload" href="/static/ttf/Ubuntu-Regular.ttf" as="font" type="font/woff2" crossorigin />
|
|
|
|
{% block scripts %}{% endblock %}
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{% block content %}
|
|
|
|
<table class="top_info">
|
|
<tr>
|
|
<td class="image">
|
|
<div style="background-image:url('{% block imageurl %}/favicon.png{% endblock %}')"></div>
|
|
</td>
|
|
<td class="text">
|
|
<h1>{% block heading %}{% endblock %}</h1><br/>
|
|
|
|
|
|
{% block top_info %}
|
|
|
|
{% endblock %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{% block maincontent %}
|
|
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<div class="footer">
|
|
<div>
|
|
<!--<span>Get your own charts on
|
|
<a target="_blank" rel="noopener noreferrer" href="https://github.com/krateng/maloja">GitHub</a>,
|
|
<a target="_blank" rel="noopener noreferrer" href="https://pypi.org/project/malojaserver/">PyPI</a> or
|
|
<a target="_blank" rel="noopener noreferrer" href="https://hub.docker.com/r/krateng/maloja">Dockerhub</a>
|
|
</span>-->
|
|
<span><a href="/about">About</a></span>
|
|
</div>
|
|
<div>
|
|
<a href="/"><span style="font-weight:bold;">Maloja {% if settings["DEV_MODE"] %}[Developer Mode]{% endif %}</span></a>
|
|
</div>
|
|
<div>
|
|
<span><input id="searchinput" placeholder="Search for an artist or track..." oninput="search(this)" onblur="clearresults()" /></span>
|
|
</div>
|
|
|
|
<div id="resultwrap" class="hide">
|
|
<div class="searchresults">
|
|
<span>Artists</span>
|
|
<table class="searchresults_artists" id="searchresults_artists">
|
|
</table>
|
|
<br/><br/>
|
|
<span>Tracks</span>
|
|
<table class="searchresults_tracks" id="searchresults_tracks">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<a href="/admin_overview"><div title="Server Administration" id="settingsicon" class="clickable_icon">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17 12.645v-2.289c-1.17-.417-1.907-.533-2.28-1.431-.373-.9.07-1.512.6-2.625l-1.618-1.619c-1.105.525-1.723.974-2.626.6-.9-.374-1.017-1.117-1.431-2.281h-2.29c-.412 1.158-.53 1.907-1.431 2.28h-.001c-.9.374-1.51-.07-2.625-.6l-1.617 1.619c.527 1.11.973 1.724.6 2.625-.375.901-1.123 1.019-2.281 1.431v2.289c1.155.412 1.907.531 2.28 1.431.376.908-.081 1.534-.6 2.625l1.618 1.619c1.107-.525 1.724-.974 2.625-.6h.001c.9.373 1.018 1.118 1.431 2.28h2.289c.412-1.158.53-1.905 1.437-2.282h.001c.894-.372 1.501.071 2.619.602l1.618-1.619c-.525-1.107-.974-1.723-.601-2.625.374-.899 1.126-1.019 2.282-1.43zm-8.5 1.689c-1.564 0-2.833-1.269-2.833-2.834s1.269-2.834 2.833-2.834 2.833 1.269 2.833 2.834-1.269 2.834-2.833 2.834zm15.5 4.205v-1.077c-.55-.196-.897-.251-1.073-.673-.176-.424.033-.711.282-1.236l-.762-.762c-.52.248-.811.458-1.235.283-.424-.175-.479-.525-.674-1.073h-1.076c-.194.545-.25.897-.674 1.073-.424.176-.711-.033-1.235-.283l-.762.762c.248.523.458.812.282 1.236-.176.424-.528.479-1.073.673v1.077c.544.193.897.25 1.073.673.177.427-.038.722-.282 1.236l.762.762c.521-.248.812-.458 1.235-.283.424.175.479.526.674 1.073h1.076c.194-.545.25-.897.676-1.074h.001c.421-.175.706.034 1.232.284l.762-.762c-.247-.521-.458-.812-.282-1.235s.529-.481 1.073-.674zm-4 .794c-.736 0-1.333-.597-1.333-1.333s.597-1.333 1.333-1.333 1.333.597 1.333 1.333-.597 1.333-1.333 1.333z"/></svg>
|
|
</div></a>
|
|
|
|
</body>
|
|
</html>
|