mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 12:15:06 +03:00
Nicer listing of edits
This commit is contained in:
parent
e1a6245afc
commit
412d3611c8
@ -313,10 +313,10 @@ renderEdits globalState edits = do
|
||||
JS.undoBlock (editId (editBlock ^?! _head._1._2),
|
||||
editId (editBlock ^?! _last._1._2),
|
||||
blockNode)
|
||||
ul_ $ do
|
||||
for_ editBlock $ \((edit, EditDetails{..}), mbErr) -> li_ $ do
|
||||
for_ editBlock $ \((edit, EditDetails{..}), mbErr) ->
|
||||
div_ [class_ "edit"] $ do
|
||||
editNode <- thisNode
|
||||
p_ $ do
|
||||
p_ [class_ "edit-info"] $ do
|
||||
toHtml =<< liftIO (humanReadableTime editDate)
|
||||
emptySpan "1em"
|
||||
textButton "accept" $
|
||||
|
@ -31,6 +31,18 @@ textarea:focus {
|
||||
outline: 0px none;
|
||||
border: 1px solid #07C; }
|
||||
|
||||
.edit {
|
||||
padding: 0.3em 1em;
|
||||
margin: 1em 0.5em;
|
||||
box-shadow: 0 1px 5px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
|
||||
|
||||
.edit-info {
|
||||
color: gray;
|
||||
opacity: 0.8; }
|
||||
|
||||
#edits > * > h2 {
|
||||
margin-top: 3em; }
|
||||
|
||||
#edits table {
|
||||
width: 100%;
|
||||
border: none;
|
||||
|
Loading…
Reference in New Issue
Block a user