From 4ff66317fa93fab10f3a096ea120854b415d756d Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 5 Sep 2014 21:00:03 +0200 Subject: [PATCH] some beautyfication --- Handler/Medium.hs | 2 ++ templates/album.hamlet | 12 +++++++----- templates/medium.hamlet | 2 +- templates/profile.hamlet | 30 ++++++++++++++++++------------ 4 files changed, 28 insertions(+), 18 deletions(-) diff --git a/Handler/Medium.hs b/Handler/Medium.hs index e2b0b54..70a9585 100644 --- a/Handler/Medium.hs +++ b/Handler/Medium.hs @@ -12,6 +12,8 @@ getMediumR mediumId = do ownerId <- return $ mediumOwner medium owner <- runDB $ getJust ownerId ownerName <- return $ userName owner + albumId <- return $ mediumAlbum medium + album <- runDB $ getJust albumId msu <- lookupSession "userId" presence <- case msu of Just tempUserId -> do diff --git a/templates/album.hamlet b/templates/album.hamlet index 91987d8..d048c30 100644 --- a/templates/album.hamlet +++ b/templates/album.hamlet @@ -11,8 +11,10 @@ by #{ownerName} This album is empty $else Images in this album: - $forall (Entity mediumId medium) <- media -
- -
- #{mediumTitle medium} +