2018-11-01 02:08:29 +04:00
|
|
|
@use super::statics::{photos_css, admin_js, ux_js};
|
2018-09-01 16:41:40 +04:00
|
|
|
@use crate::server::{Context, Link};
|
|
|
|
@use crate::templates::head;
|
2016-09-26 01:45:13 +03:00
|
|
|
|
2018-09-01 16:41:40 +04: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"/>
|
2017-05-08 09:09:18 +04:00
|
|
|
<link rel="stylesheet" href="/static/@photos_css.name" type="text/css"/>
|
2018-09-01 16:41:40 +04:00
|
|
|
@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>
|
|
|
|
}
|
2017-12-12 01:07:51 +04:00
|
|
|
<script src="/static/@ux_js.name" type="text/javascript" defer>
|
2017-11-17 03:26:17 +04:00
|
|
|
</script>
|
2018-11-03 20:17:09 +04:00
|
|
|
@:meta()
|
2016-09-26 01:45:13 +03:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-09-01 16:41:40 +04:00
|
|
|
@:head(context, lpath)
|
2017-02-11 15:20:48 +04:00
|
|
|
<main>
|
|
|
|
<h1>@title</h1>
|
|
|
|
@:content()
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
|
|
<p>Managed by
|
2017-08-01 03:40:42 +04:00
|
|
|
<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>
|