eidolon/templates/adminUserMedia.hamlet
2016-09-02 15:55:50 +02:00

13 lines
381 B
Text
Executable file

$newline always
<div .subheader .item>
<h1>Media of #{userSlug owner}
$if null media
<p>
#{userSlug owner} has no media yet
$forall (Entity mId m) <- media
<div .item>
<a href=@{AdminMediumSettingsR mId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb m) []}>
<figcaption>#{mediumTitle m}