From 1253162e55d3f93d476958907491ef0014777bda Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 12 Mar 2011 20:30:24 +0100 Subject: Improve journal archive table layout and labelling. --- mulkcms.lisp | 12 ++++++++++-- package.lisp | 5 +++-- static-files/style/journal.css | 9 +++++++++ templates/journal_page.html | 16 ++++++++-------- 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/mulkcms.lisp b/mulkcms.lisp index f44e4c4..f2070a4 100644 --- a/mulkcms.lisp +++ b/mulkcms.lisp @@ -60,7 +60,10 @@ (defun format-short-human-date (date) ;; FIXME - "(some date)") + (multiple-value-bind (year month day hour minute second millisecond) + (decode-timestamp date) + (declare (ignore second millisecond)) + (format nil "~4,'0D-~2,'0D-~2,'0D ~2,'0D:~2,'0D" year month day hour minute))) (defun format-human-date (date) ;; FIXME @@ -299,7 +302,12 @@ :site-subtitle "" :link "" :full-archive-link "" - :full-archive-label "Full archive (slow!)")) + :full-archive-label "Full archive (slow!)" + :archive-title "Older posts" + :archive-table-caption "Posts by date" + :archive-title-label "Title" + :archive-date-label "Date" + :archive-comments-label "Comments")) (head (expand-template page-template (list* :head t :articles displayed-revisions :minor-articles revisions diff --git a/package.lisp b/package.lisp index 6b0c7cb..d7de2cc 100644 --- a/package.lisp +++ b/package.lisp @@ -1,10 +1,11 @@ (cl:defpackage #:mulkcms (:use #:common-lisp #:split-sequence #:alexandria #:cl-fad #:cl-who - #:cl-ppcre #:postmodern #:json-template) + #:cl-ppcre #:postmodern #:json-template #:simple-date) (:shadow #:copy-file #:copy-stream) (:export #:*base-uri* #:*static-files* #:*templates* #:*server-address* #:*server-port* - #:*site-name*)) + #:*site-name* + #:find-request-handler)) diff --git a/static-files/style/journal.css b/static-files/style/journal.css index 4d35bee..f33e464 100644 --- a/static-files/style/journal.css +++ b/static-files/style/journal.css @@ -190,6 +190,15 @@ table.old-entry-table td { margin: 0 0 0 0; } +table.old-entry-table td.archive-date { + white-space: nowrap; + text-align: right; +} + +table.old-entry-table td.archive-comment-number { + white-space: nowrap; +} + a:link { color: #0c2db2; } diff --git a/templates/journal_page.html b/templates/journal_page.html index 978b3f0..d9646f3 100644 --- a/templates/journal_page.html +++ b/templates/journal_page.html @@ -18,23 +18,23 @@ {.section minor-articles}
-

Ältere Einträge

+

{archive-title}

{full-archive-label|html}

- + - - - + + + {.repeated section @} - - - + + + {.end} -- cgit v1.2.3
Einträge nach Datum{archive-table-caption}
TitelDatumKommentare{archive-title-label}{archive-date-label}{archive-comments-label}
{title}{publishing-date|html-short-human-date}{comments-label|html}{title}{publishing-date|html-short-human-date}{comments-label|html}