using now media thumbnails as thumbnails

This commit is contained in:
nek0 2014-12-03 22:01:23 +01:00
parent fdf7ab553d
commit 90182768f1
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ albumSettingsForm album albumId = renderDivs $ Album
where
media = do
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 = do

View file

@ -10,5 +10,5 @@ $else
<li>
<a href=@{MediumR mId}>
<figure class="thumbnail">
<img src=#{mediumPath m}>
<img src=#{mediumThumb m}>
<figcapion>#{mediumTitle m}