Skip to content

Commit 3fe5ab5

Browse files
committed
[feature] add favicon.ico
1 parent a04dad1 commit 3fe5ab5

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
108 KB
Binary file not shown.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>py-kms {% block title %}{% endblock %}</title>
6+
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename= 'favicon.ico') }}">
7+
<link rel="stylesheet" href="{{ url_for('static', filename= 'css/bulma.min.css') }}">
8+
<style>
9+
#content {
10+
margin: 1em;
11+
overflow-x: auto;
12+
}
13+
pre {
14+
overflow-x: auto;
15+
padding: 0.5em;
16+
}
17+
{% if path != '/' %}
18+
div.backtohome {
19+
display: flex;
20+
justify-content: center;
21+
}
22+
{% endif %}
23+
{% block style %}{% endblock %}
24+
</style>
25+
</head>
26+
<body>
27+
<div id="content">
28+
{% block content %}{% endblock %}
29+
30+
{% if path != '/' %}
31+
<div class="block backtohome">
32+
<a class="button is-normal is-responsive" href="/">
33+
Back to home
34+
</a>
35+
</div>
36+
{% endif %}
37+
</div>
38+
39+
<footer class="footer">
40+
<div class="content has-text-centered">
41+
<p>
42+
<strong>py-kms</strong> is online since <span class="convert_timestamp">{{ start_time }}</span>.
43+
This instance was accessed {{ get_serve_count() }} times. View this softwares license <a href="/license">here</a>.
44+
{% if version_info %}
45+
<br>This instance is running version "{{ version_info['hash'] }}" from branch "{{ version_info['branch'] }}" of py-kms.
46+
{% endif %}
47+
</p>
48+
</div>
49+
</footer>
50+
51+
<script>
52+
for(let element of document.getElementsByClassName('convert_timestamp')) {
53+
element.innerText = new Date(element.innerText).toLocaleString();
54+
}
55+
</script>
56+
</body>
57+
</html>

0 commit comments

Comments
 (0)