some beautyfication
This commit is contained in:
parent
55e7cfac0f
commit
4ff66317fa
4 changed files with 28 additions and 18 deletions
|
@ -12,6 +12,8 @@ getMediumR mediumId = do
|
||||||
ownerId <- return $ mediumOwner medium
|
ownerId <- return $ mediumOwner medium
|
||||||
owner <- runDB $ getJust ownerId
|
owner <- runDB $ getJust ownerId
|
||||||
ownerName <- return $ userName owner
|
ownerName <- return $ userName owner
|
||||||
|
albumId <- return $ mediumAlbum medium
|
||||||
|
album <- runDB $ getJust albumId
|
||||||
msu <- lookupSession "userId"
|
msu <- lookupSession "userId"
|
||||||
presence <- case msu of
|
presence <- case msu of
|
||||||
Just tempUserId -> do
|
Just tempUserId -> do
|
||||||
|
|
|
@ -11,6 +11,8 @@ by <a href=@{UserR ownerName}>#{ownerName}</a>
|
||||||
This album is empty
|
This album is empty
|
||||||
$else
|
$else
|
||||||
Images in this album:
|
Images in this album:
|
||||||
|
<ul class="media">
|
||||||
|
<li>
|
||||||
$forall (Entity mediumId medium) <- media
|
$forall (Entity mediumId medium) <- media
|
||||||
<div class="thumbnails">
|
<div class="thumbnails">
|
||||||
<a href=@{MediumR mediumId}>
|
<a href=@{MediumR mediumId}>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h3>#{mediumTitle medium}
|
<h3>#{mediumTitle medium}
|
||||||
|
|
||||||
by <a href=@{UserR ownerName}>#{ownerName}</a>
|
by <a href=@{UserR ownerName}>#{ownerName}</a> from album <a href=@{AlbumR albumId}>#{albumTitle album}</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,14 @@ $if presence == True
|
||||||
<a href=@{ProfileSettingsR ownerId}>Change your profile settings
|
<a href=@{ProfileSettingsR ownerId}>Change your profile settings
|
||||||
|
|
||||||
$if null userAlbs
|
$if null userAlbs
|
||||||
|
<ul class="noalbum">
|
||||||
|
<li>
|
||||||
This user has no albums yet
|
This user has no albums yet
|
||||||
$else
|
$else
|
||||||
Albums of this user:
|
Albums of this user:
|
||||||
$forall (Entity albumId album) <- userAlbs
|
$forall (Entity albumId album) <- userAlbs
|
||||||
|
<ul class="albums">
|
||||||
|
<li>
|
||||||
<div class="thumbnails">
|
<div class="thumbnails">
|
||||||
<a href=@{AlbumR albumId}>
|
<a href=@{AlbumR albumId}>
|
||||||
$if (albumSamplePic album) == Nothing
|
$if (albumSamplePic album) == Nothing
|
||||||
|
@ -20,6 +24,8 @@ $if null recentMedia
|
||||||
This user has not uploaded any images
|
This user has not uploaded any images
|
||||||
$else
|
$else
|
||||||
Newest images:
|
Newest images:
|
||||||
|
<ul class="media">
|
||||||
|
<li>
|
||||||
$forall (Entity mediumId medium) <- take 10 recentMedia
|
$forall (Entity mediumId medium) <- take 10 recentMedia
|
||||||
<div class="thumbnails">
|
<div class="thumbnails">
|
||||||
<a href=@{MediumR mediumId}>
|
<a href=@{MediumR mediumId}>
|
||||||
|
|
Loading…
Reference in a new issue