From ad5dcc5423c50fabcf8af8bdedbab71b27038b44 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Wed, 10 Dec 2008 22:48:39 +0100 Subject: Improve main page layout. darcs-hash:f2612544d22dbc7d2e61980f2c8102362a3feb67 --- journal.lisp | 46 ++++++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 16 deletions(-) (limited to 'journal.lisp') diff --git a/journal.lisp b/journal.lisp index 3737934..164d672 100755 --- a/journal.lisp +++ b/journal.lisp @@ -140,22 +140,36 @@ (defun show-journal-entry-with-components (id title body categories posting-date comments comments-p) (<:div :class :journal-entry - (<:h2 (<:a :href (link-to :view :post-id id) - (<:as-html title))) - (<:div :class :journal-entry-header - (<:span :class :journal-entry-date - (<:as-html - (format-date nil "%@day-of-week, den %day.%mon.%yr, %hr:%2min." - posting-date))) - (unless (null categories) - (<:span :class :journal-entry-category + (unless *full-entry-view* + (<:h2 :style "display: inline; border: none;" + (<:a :href (link-to :view :post-id id) + (<:as-html title))) + (<:div :style "display: inline; text-align: right; padding: 0 3em 0 3em;" + (<:a :href (link-to :view :post-id id) + (<:as-is + (format nil "(~D Kommentar~:*~[e~;~:;e~])" (length comments))))) + (<:div :class :journal-entry-date + (<:as-html + (format-date nil " %day.%mon.%yr, %hr:%2min " + posting-date)))) + (when *full-entry-view* + (<:h2 (<:a :href (link-to :view :post-id id) + (<:as-html title)))) + (when *full-entry-view* + (<:div :class :journal-entry-header + (<:span :class :journal-entry-date (<:as-html - (format nil "Abgeheftet unter ..."))))) + (format-date nil "%@day-of-week, den %day.%mon.%yr, %hr:%2min." + posting-date))) + (unless (null categories) + (<:span :class :journal-entry-category + (<:as-html + (format nil "Abgeheftet unter ...")))))) (when *full-entry-view* (<:div :class :journal-entry-body (<:as-is (journal-markup->html body)))) - (<:div :class :journal-entry-footer - (when *full-entry-view* + (when *full-entry-view* + (<:div :class :journal-entry-footer (<:form :class :journal-entry-delete-button-form :style "display: inline;" :method "post" @@ -180,10 +194,10 @@ :value (prin1-to-string id)) (<:button :type "submit" (<:as-is "Bearbeiten")))) - " | ") - (<:a :href (link-to :view :post-id id) - (<:as-is - (format nil "~D Kommentar~:*~[e~;~:;e~]" (length comments)))))) + " | " + (<:a :href (link-to :view :post-id id) + (<:as-is + (format nil "~D Kommentar~:*~[e~;~:;e~]" (length comments))))))) (when (and *full-entry-view* comments-p (not (null comments))) (<:div :class :journal-comments -- cgit v1.2.3