summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-12-10 22:48:39 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-12-10 22:48:39 +0100
commitad5dcc5423c50fabcf8af8bdedbab71b27038b44 (patch)
tree20b9162a3a8f83a98031d1815fde89134a519399
parentb61c67a5ad07fae329374a947ace02f671ccbd01 (diff)
Improve main page layout.
darcs-hash:f2612544d22dbc7d2e61980f2c8102362a3feb67
-rwxr-xr-xjournal.lisp46
1 files changed, 30 insertions, 16 deletions
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