working on medium site

This commit is contained in:
nek0 2015-01-12 15:15:52 +01:00
parent 4a4815bbe3
commit bba4db7795
11 changed files with 68 additions and 72 deletions

View file

@ -83,8 +83,9 @@ renderLayout widget = do
, js_init_js
])
$(combineStylesheets 'StaticR
[ css_normalize_css
, css_bootstrap_css
[
-- css_normalize_css
css_bootstrap_css
])
$(widgetFile "default-layout")
withUrlRenderer $(hamletFile "templates/default-layout-wrapper.hamlet")

View file

@ -28,7 +28,7 @@ getAdminMediumSettingsR mediumId = do
case tempMedium of
Just medium -> do
(adminMediumSetWidget, enctype) <- generateFormPost $ adminMediumSetForm medium
defaultLayout $ do
formLayout $ do
setTitle "Administration: Medium Settings"
$(widgetFile "adminMediumSet")
Nothing -> do

View file

@ -33,7 +33,7 @@ getMediumR mediumId = do
(commentWidget, enctype) <- generateFormPost $ commentForm userId userSl mediumId Nothing
comments <- 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))
$(widgetFile "medium")
Nothing -> do

View file

@ -499,7 +499,7 @@ console.log(itemsWidth,itemHeight)
overlayColor: _.settings.popupOverlayColor,
overlayOpacity: _.settings.popupOverlayOpacity,
popupCloserText: '',
popupLoaderText: '',
popupLoaderText: 'loading',
selector: '.thumb a',
usePopupCaption: true,
usePopupCloser: false,

View file

@ -6,8 +6,8 @@ $newline always
<p>#{albumTitle album} has no media yet
$forall (Entity mId m) <- media
<article class="item" data-width="200">
<a href=@{AdminMediumSettingsR mId}>#{mediumTitle m}
<article class="item" data-width=#{mediumThumbWidth m}>
<a href=@{AdminMediumSettingsR mId}>
<figure class="thumbnail">
<img src=#{mediumThumb m}>
<figcaption>#{mediumTitle m}

View file

@ -1,8 +1,7 @@
$newline always
<h3>Medium settings
<div class="left">
<form method="post" enctype=#{enctype}>
<div id="header" class="item" data-width="300">
<form class="inner" method="post" enctype=#{enctype}>
<h1>Medium settings
^{adminMediumSetWidget}
<div>
<input type=submit value="Change settings">

View file

@ -1,10 +0,0 @@
.right
float:right
width:50%
.left
float:left
width:50%
footer
clear:both

View file

@ -1,7 +1,7 @@
$newline always
<div id="header" class="item" data-width="300">
<form class="inner" method="post" enctype=#{enctype}>
<h3>Album settings
<h1>Album settings
^{albumSettingsWidget}
<div>
<input type=submit value="Change settings">

View file

@ -4,6 +4,10 @@
color: #d64760
font-size: 1.5em
.item
background: #1a1f2c;
background: rgba(255,255,255,0.25);
nav li
display: inline-block

View file

@ -1,4 +1,5 @@
img
position: relative !important
width: 100%
.reply

View file

@ -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>
<div class="image">
<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>
Description:<br>
#{mediumDescription medium}
<br>
<div class="tags">
Tags:
<ul>