hoc/templates/base.rs.html

60 lines
1.4 KiB
HTML
Raw Normal View History

@use super::statics::*;
2019-05-14 01:11:39 +02:00
@use crate::statics::VersionInfo;
2019-04-30 14:20:11 +02:00
2019-06-12 21:50:45 +02:00
@(title: &str, header: &str, content: Content, version_info: VersionInfo, repo_count: usize)
2019-04-23 18:19:54 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="Hits-of-Code, GitHub, Badge" />
<meta name="description" content="Hits-of-Code Badges for Git repositories" />
<link rel="stylesheet" href="/static/@tacit_css_min_css.name" />
2019-04-23 18:19:54 +02:00
<title>@title</title>
</head>
<body>
<section>
<header>
<h1>@header</h1>
</header>
<article>
@:content()
</article>
<footer>
<nav>
<ul>
<li>
<small>Created by <a href="https://www.vbrandl.net">Valentin Brandl</a>.</small>
</li>
</ul>
</nav>
<nav>
<ul>
<li>
2019-04-30 14:20:11 +02:00
<small>HoC v@version_info.version - <a href="https://github.com/vbrandl/hoc/commit/@version_info.commit">@version_info.commit</a></small>
2019-04-23 18:19:54 +02:00
</li>
2019-06-12 21:57:24 +02:00
</ul>
</nav>
<nav>
<ul>
2019-06-12 21:50:45 +02:00
<li>
<small>Currently serving @repo_count repositories</small>
</li>
2019-04-23 18:19:54 +02:00
</ul>
</nav>
<nav>
<ul>
<li><small><a href="https://github.com/vbrandl/hoc">GitHub</a></small></li>
<li><small><a href="https://opensource.org/licenses/MIT">MIT License</a></small></li>
</ul>
</nav>
</footer>
</section>
</body>
</html>