eidolon/templates/page.hamlet

26 lines
655 B
Text
Raw Normal View History

2015-02-11 23:15:07 +00:00
$doctype 5
$if page == 1
2016-08-31 19:37:20 +00:00
<div .item .subheader>
2015-02-11 23:15:07 +00:00
<div class="inner">
<p>
<a href=@{HomeR}>
newer
$else
2016-08-31 19:37:20 +00:00
<div .item .subheader>
2015-02-11 23:15:07 +00:00
<div class="inner">
<p>
<a href=@{PageR (page - 1)}>
newer
$forall (Entity mediumId medium) <- pageMedia
2016-08-31 19:37:20 +00:00
<div .item>
2015-02-11 23:15:07 +00:00
<a href=@{MediumR mediumId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
2015-02-11 23:15:07 +00:00
<figcaption>#{mediumTitle medium}
$if nextMedia
2016-08-31 19:37:20 +00:00
<div .item .subheader>
2015-02-11 23:15:07 +00:00
<div class="inner">
<p>
<a href=@{PageR (page + 1)}>
older