2016-09-26 01:45:13 +03:00
|
|
|
@use ::{Group, Link};
|
2017-08-03 21:59:21 +04:00
|
|
|
@use nickel::Request;
|
2016-09-26 01:45:13 +03:00
|
|
|
@use templates::page_base;
|
2016-09-20 08:32:22 +03:00
|
|
|
|
2017-08-03 21:59:21 +04:00
|
|
|
@(req: &Request, title: &str, lpath: &[Link], groups: &[Group])
|
2016-09-20 08:32:22 +03:00
|
|
|
|
2017-08-03 21:59:21 +04:00
|
|
|
@:page_base(req, title, lpath, {
|
2016-09-26 01:45:13 +03:00
|
|
|
<div class="group">
|
|
|
|
@if groups.is_empty() {
|
2016-09-24 00:12:22 +03:00
|
|
|
<p>Inga bilder.</p>
|
2016-09-26 01:45:13 +03:00
|
|
|
}
|
|
|
|
@for g in groups {
|
2016-09-20 08:32:22 +03:00
|
|
|
<div class="item"><h2>@g.title</h2>
|
2017-02-01 19:12:03 +04:00
|
|
|
<p><a href="@g.url"><img src="/img/@g.photo.id-s.jpg"></a></p>
|
2016-09-20 08:32:22 +03:00
|
|
|
<p>@g.count pictures</p>
|
|
|
|
</div>
|
2016-09-26 01:45:13 +03:00
|
|
|
}
|
|
|
|
</div>
|
|
|
|
})
|