2016-09-02 13:55:50 +00:00
|
|
|
<div .subheader .item>
|
|
|
|
<h1>
|
|
|
|
Results for: #{query}
|
2015-10-17 01:09:04 +00:00
|
|
|
|
|
|
|
$if allEmpty
|
2016-09-02 13:55:50 +00:00
|
|
|
<div .subheader .item>
|
|
|
|
<h2>
|
|
|
|
Sorry, no results
|
2015-10-17 01:09:04 +00:00
|
|
|
$else
|
|
|
|
$if not $ null userList
|
2016-09-02 13:55:50 +00:00
|
|
|
<div .subheader .item>
|
|
|
|
<h2>
|
|
|
|
Results in Users:
|
2015-10-17 01:09:04 +00:00
|
|
|
$forall (Entity uId user) <- userList
|
2016-09-02 13:55:50 +00:00
|
|
|
<div .item>
|
2017-10-22 12:17:12 +00:00
|
|
|
<a .pagin href=@{ProfileR uId}>
|
2016-09-02 13:55:50 +00:00
|
|
|
#{userSlug user}
|
2015-10-17 01:09:04 +00:00
|
|
|
$if not $ null albumList
|
2016-09-02 13:55:50 +00:00
|
|
|
<div .subheader .item>
|
|
|
|
<h2>
|
|
|
|
Results in Albums:
|
2015-10-17 01:09:04 +00:00
|
|
|
$forall (Entity aId album) <- albumList
|
2017-10-20 16:49:37 +00:00
|
|
|
<div .item>
|
2015-10-17 18:03:29 +00:00
|
|
|
<a href=@{AlbumR aId}>
|
2015-10-19 14:31:10 +00:00
|
|
|
<figure>
|
2015-10-17 18:03:29 +00:00
|
|
|
$if (albumSamplePic album) == Nothing
|
|
|
|
<img src=@{StaticR img_album_jpg} title=#{albumTitle album}>
|
|
|
|
$else
|
|
|
|
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ fromJust $ albumSamplePic album) []} title=#{albumTitle album}>
|
|
|
|
<figcaption>#{albumTitle album}
|
2015-10-17 01:09:04 +00:00
|
|
|
$if not $ null mediumList
|
2016-09-02 13:55:50 +00:00
|
|
|
<article .subheader .item>
|
|
|
|
<h2>
|
|
|
|
Results in Media:
|
2015-10-17 01:09:04 +00:00
|
|
|
$forall (Entity mId medium) <- mediumList
|
2016-09-02 13:55:50 +00:00
|
|
|
<div .item>
|
2015-10-17 18:03:29 +00:00
|
|
|
<a href=@{MediumR mId}>
|
2015-10-19 14:31:10 +00:00
|
|
|
<figure>
|
2015-10-17 18:03:29 +00:00
|
|
|
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
|
|
|
|
<figcaption>#{mediumTitle medium}
|
2017-10-21 19:18:59 +00:00
|
|
|
$if not $ null tagList
|
|
|
|
<article .subheader .item>
|
|
|
|
<h2>
|
|
|
|
Results in Tags:
|
|
|
|
$forall tag <- tagList
|
|
|
|
<div .item>
|
2017-10-22 12:17:12 +00:00
|
|
|
<a .pagin .tag href=@{TagR tag}>
|
2017-10-21 19:18:59 +00:00
|
|
|
#{tag}
|