working on medium site
This commit is contained in:
parent
4a4815bbe3
commit
bba4db7795
11 changed files with 68 additions and 72 deletions
|
@ -83,8 +83,9 @@ renderLayout widget = do
|
||||||
, js_init_js
|
, js_init_js
|
||||||
])
|
])
|
||||||
$(combineStylesheets 'StaticR
|
$(combineStylesheets 'StaticR
|
||||||
[ css_normalize_css
|
[
|
||||||
, css_bootstrap_css
|
-- css_normalize_css
|
||||||
|
css_bootstrap_css
|
||||||
])
|
])
|
||||||
$(widgetFile "default-layout")
|
$(widgetFile "default-layout")
|
||||||
withUrlRenderer $(hamletFile "templates/default-layout-wrapper.hamlet")
|
withUrlRenderer $(hamletFile "templates/default-layout-wrapper.hamlet")
|
||||||
|
|
|
@ -28,7 +28,7 @@ getAdminMediumSettingsR mediumId = do
|
||||||
case tempMedium of
|
case tempMedium of
|
||||||
Just medium -> do
|
Just medium -> do
|
||||||
(adminMediumSetWidget, enctype) <- generateFormPost $ adminMediumSetForm medium
|
(adminMediumSetWidget, enctype) <- generateFormPost $ adminMediumSetForm medium
|
||||||
defaultLayout $ do
|
formLayout $ do
|
||||||
setTitle "Administration: Medium Settings"
|
setTitle "Administration: Medium Settings"
|
||||||
$(widgetFile "adminMediumSet")
|
$(widgetFile "adminMediumSet")
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
|
|
|
@ -33,7 +33,7 @@ getMediumR mediumId = do
|
||||||
(commentWidget, enctype) <- generateFormPost $ commentForm userId userSl mediumId Nothing
|
(commentWidget, enctype) <- generateFormPost $ commentForm userId userSl mediumId Nothing
|
||||||
comments <- runDB $ selectList [CommentOrigin ==. mediumId, CommentParent ==. Nothing] [Desc CommentTime]
|
comments <- runDB $ selectList [CommentOrigin ==. mediumId, CommentParent ==. Nothing] [Desc CommentTime]
|
||||||
replies <- runDB $ selectList [CommentOrigin ==. mediumId, CommentParent !=. Nothing] [Desc CommentTime]
|
replies <- runDB $ selectList [CommentOrigin ==. mediumId, CommentParent !=. Nothing] [Desc CommentTime]
|
||||||
defaultLayout $ do
|
formLayout $ do
|
||||||
setTitle $ toHtml ("Eidolon :: Medium " `T.append` (mediumTitle medium))
|
setTitle $ toHtml ("Eidolon :: Medium " `T.append` (mediumTitle medium))
|
||||||
$(widgetFile "medium")
|
$(widgetFile "medium")
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
|
|
|
@ -499,7 +499,7 @@ console.log(itemsWidth,itemHeight)
|
||||||
overlayColor: _.settings.popupOverlayColor,
|
overlayColor: _.settings.popupOverlayColor,
|
||||||
overlayOpacity: _.settings.popupOverlayOpacity,
|
overlayOpacity: _.settings.popupOverlayOpacity,
|
||||||
popupCloserText: '',
|
popupCloserText: '',
|
||||||
popupLoaderText: '',
|
popupLoaderText: 'loading',
|
||||||
selector: '.thumb a',
|
selector: '.thumb a',
|
||||||
usePopupCaption: true,
|
usePopupCaption: true,
|
||||||
usePopupCloser: false,
|
usePopupCloser: false,
|
||||||
|
|
|
@ -6,8 +6,8 @@ $newline always
|
||||||
<p>#{albumTitle album} has no media yet
|
<p>#{albumTitle album} has no media yet
|
||||||
|
|
||||||
$forall (Entity mId m) <- media
|
$forall (Entity mId m) <- media
|
||||||
<article class="item" data-width="200">
|
<article class="item" data-width=#{mediumThumbWidth m}>
|
||||||
<a href=@{AdminMediumSettingsR mId}>#{mediumTitle m}
|
<a href=@{AdminMediumSettingsR mId}>
|
||||||
<figure class="thumbnail">
|
<figure class="thumbnail">
|
||||||
<img src=#{mediumThumb m}>
|
<img src=#{mediumThumb m}>
|
||||||
<figcaption>#{mediumTitle m}
|
<figcaption>#{mediumTitle m}
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
$newline always
|
$newline always
|
||||||
<h3>Medium settings
|
<div id="header" class="item" data-width="300">
|
||||||
|
<form class="inner" method="post" enctype=#{enctype}>
|
||||||
<div class="left">
|
<h1>Medium settings
|
||||||
<form method="post" enctype=#{enctype}>
|
|
||||||
^{adminMediumSetWidget}
|
^{adminMediumSetWidget}
|
||||||
<div>
|
<div>
|
||||||
<input type=submit value="Change settings">
|
<input type=submit value="Change settings">
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
.right
|
|
||||||
float:right
|
|
||||||
width:50%
|
|
||||||
|
|
||||||
.left
|
|
||||||
float:left
|
|
||||||
width:50%
|
|
||||||
|
|
||||||
footer
|
|
||||||
clear:both
|
|
|
@ -1,7 +1,7 @@
|
||||||
$newline always
|
$newline always
|
||||||
<div id="header" class="item" data-width="300">
|
<div id="header" class="item" data-width="300">
|
||||||
<form class="inner" method="post" enctype=#{enctype}>
|
<form class="inner" method="post" enctype=#{enctype}>
|
||||||
<h3>Album settings
|
<h1>Album settings
|
||||||
^{albumSettingsWidget}
|
^{albumSettingsWidget}
|
||||||
<div>
|
<div>
|
||||||
<input type=submit value="Change settings">
|
<input type=submit value="Change settings">
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
color: #d64760
|
color: #d64760
|
||||||
font-size: 1.5em
|
font-size: 1.5em
|
||||||
|
|
||||||
|
.item
|
||||||
|
background: #1a1f2c;
|
||||||
|
background: rgba(255,255,255,0.25);
|
||||||
|
|
||||||
nav li
|
nav li
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
img
|
img
|
||||||
|
position: relative !important
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
.reply
|
.reply
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
<h3>#{mediumTitle medium}
|
<div id="header" class="item" data-width="800">
|
||||||
|
<div class="inner">
|
||||||
|
<h1>#{mediumTitle medium}
|
||||||
|
|
||||||
by <a href=@{UserR ownerName}>#{ownerName}</a> from album <a href=@{AlbumR albumId}>#{albumTitle album}</a>
|
by <a href=@{UserR ownerName}>#{ownerName}</a> from album <a href=@{AlbumR albumId}>#{albumTitle album}</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="image">
|
|
||||||
<img src=#{mediumPath medium}>
|
<img src=#{mediumPath medium}>
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,7 +13,7 @@ by <a href=@{UserR ownerName}>#{ownerName}</a> from album <a href=@{AlbumR album
|
||||||
Uploaded on: #{formatTime defaultTimeLocale "%A %F %H:%M" (mediumTime medium)}<br>
|
Uploaded on: #{formatTime defaultTimeLocale "%A %F %H:%M" (mediumTime medium)}<br>
|
||||||
Description:<br>
|
Description:<br>
|
||||||
#{mediumDescription medium}
|
#{mediumDescription medium}
|
||||||
<br>
|
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
Tags:
|
Tags:
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in a new issue