2016-09-26 01:45:13 +03:00
|
|
|
@use ::{Group, Link};
|
|
|
|
@use templates::page_base;
|
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
|
|
|
|
2016-09-26 01:45:13 +03:00
|
|
|
@:page_base(title, lpath, user, {
|
|
|
|
<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>
|
|
|
|
})
|