using now media thumbnails as thumbnails
This commit is contained in:
parent
fdf7ab553d
commit
90182768f1
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ albumSettingsForm album albumId = renderDivs $ Album
|
||||||
where
|
where
|
||||||
media = do
|
media = do
|
||||||
entities <- runDB $ selectList [MediumAlbum ==. albumId] [Desc MediumTitle]
|
entities <- runDB $ selectList [MediumAlbum ==. albumId] [Desc MediumTitle]
|
||||||
optionsPairs $ map (\med -> (mediumTitle $ entityVal med, mediumPath (entityVal med))) entities
|
optionsPairs $ map (\med -> (mediumTitle $ entityVal med, mediumThumb (entityVal med))) entities
|
||||||
|
|
||||||
getAlbumDeleteR :: AlbumId -> Handler Html
|
getAlbumDeleteR :: AlbumId -> Handler Html
|
||||||
getAlbumDeleteR albumId = do
|
getAlbumDeleteR albumId = do
|
||||||
|
|
|
@ -10,5 +10,5 @@ $else
|
||||||
<li>
|
<li>
|
||||||
<a href=@{MediumR mId}>
|
<a href=@{MediumR mId}>
|
||||||
<figure class="thumbnail">
|
<figure class="thumbnail">
|
||||||
<img src=#{mediumPath m}>
|
<img src=#{mediumThumb m}>
|
||||||
<figcapion>#{mediumTitle m}
|
<figcapion>#{mediumTitle m}
|
||||||
|
|
Loading…
Reference in a new issue