eidolon/templates/page.hamlet
2017-03-22 00:48:18 +01:00

19 lines
565 B
Text
Executable file

$doctype 5
$if page == 1
<div .item .subheader>
<a .pagin href=@{HomeR}>
newer
$else
<div .item .subheader>
<a href=@{PageR (page - 1)}>
newer
$forall (Entity mediumId medium) <- pageMedia
<div .item>
<a href=@{MediumR mediumId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
<figcaption>#{mediumTitle medium}
$if nextMedia
<div .item .subheader>
<a .pagin style="inline-block" href=@{PageR (page + 1)}>
older