From f447c7d9dbcc130a95a236d7edc627d40fd2c153 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 May 2013 17:04:42 +0200 Subject: [PATCH] Add separation between news items --- src/root/overview.tt | 16 +++++++++------- src/root/static/css/hydra.css | 4 ++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/root/overview.tt b/src/root/overview.tt index afdc745a..8ae4ff77 100644 --- a/src/root/overview.tt +++ b/src/root/overview.tt @@ -2,13 +2,15 @@ [% PROCESS common.tt %] [% IF newItems.size != 0 %] -
- [% FOREACH i IN newsItems %] - [% contents = String.new(i.contents) %] -

[% INCLUDE renderDateTime timestamp=i.createtime %] by [% i.author.fullname %]

- [% contents.replace('\n','
\n') %] - [% END %] -
+
+ [% FOREACH i IN newsItems %] +
+ [% contents = String.new(i.contents) %] +

[% INCLUDE renderDateTime timestamp=i.createtime %] by [% i.author.fullname %]

+ [% contents.replace('\n','
\n') %] +
+ [% END %] +
[% END %]

Projects

diff --git a/src/root/static/css/hydra.css b/src/root/static/css/hydra.css index 67a0a334..1e27a9d1 100644 --- a/src/root/static/css/hydra.css +++ b/src/root/static/css/hydra.css @@ -83,3 +83,7 @@ div.page-header h1 small { .shell-prompt { color: gray; } + +div.news-item:not(:first-child) { + margin-top: 1em; +}