album/templates/groups.rs.html

32 lines
643 B
HTML
Raw Normal View History

2016-09-23 17:40:54 +03:00
@use ::{CSSLINK, Group, Link};
@use templates::head;
2016-09-20 08:32:22 +03:00
2016-09-23 17:40:54 +03:00
@(title: &str, lpath: Vec<Link>, user: Option<String>, groups: Vec<Group>)
2016-09-20 08:32:22 +03:00
<!doctype html>
<html>
<head>
<title>@title</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
@CSSLINK
</head>
<body>
2016-09-23 17:40:54 +03:00
@:head(lpath, user)
2016-09-20 08:32:22 +03:00
<h1>@title</h1>
<div class="group">
@for g in groups {
<div class="item"><h2>@g.title</h2>
<p><a href="@g.url"><img src="/img/@g.photo.id/s"></a></p>
<p>@g.count pictures</p>
</div>
}
@*
{{^groups}}
<p>Inga bilder.</p>
{{/groups}}
*@
</div>
</body>
</html>