album/templates/page_base.rs.html

35 lines
967 B
HTML
Raw Normal View History

2018-11-01 02:08:29 +04:00
@use super::statics::{photos_css, admin_js, ux_js};
@use crate::server::{Context, Link};
@use crate::templates::head;
2016-09-26 01:45:13 +03:00
@(context: &Context, title: &str, lpath: &[Link], meta: Content, content: Content)
2016-09-26 01:45:13 +03:00
<!doctype html>
<html>
<head>
<title>@title</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
2017-02-16 16:59:52 +04:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="/static/@photos_css.name" type="text/css"/>
@if context.is_authorized() {
2017-12-12 02:11:36 +04:00
<script src="/static/@admin_js.name" type="text/javascript" defer>
2017-09-25 01:32:33 +04:00
</script>
}
<script src="/static/@ux_js.name" type="text/javascript" defer>
</script>
@:meta()
2016-09-26 01:45:13 +03:00
</head>
<body>
@:head(context, lpath)
2017-02-11 15:20:48 +04:00
<main>
<h1>@title</h1>
@:content()
</main>
<footer>
<p>Managed by
<a href="https://github.com/kaj/rphotos">rphotos
2018-03-05 21:34:21 +04:00
@env!("CARGO_PKG_VERSION")</a>.</p>
2017-02-11 15:20:48 +04:00
</footer>
2016-09-26 01:45:13 +03:00
</body>
</html>