Add separation between news items

This commit is contained in:
Eelco Dolstra 2013-05-07 17:04:42 +02:00
parent a84db1c7cc
commit f447c7d9db
2 changed files with 13 additions and 7 deletions

View file

@ -2,13 +2,15 @@
[% PROCESS common.tt %] [% PROCESS common.tt %]
[% IF newItems.size != 0 %] [% IF newItems.size != 0 %]
<div class="alert alert-info"> <div class="alert alert-info">
[% FOREACH i IN newsItems %] [% FOREACH i IN newsItems %]
[% contents = String.new(i.contents) %] <div class="news-item">
<h4 class="alert-heading">[% INCLUDE renderDateTime timestamp=i.createtime %] by [% i.author.fullname %]</h4> [% contents = String.new(i.contents) %]
[% contents.replace('\n','<br />\n') %] <h4 class="alert-heading">[% INCLUDE renderDateTime timestamp=i.createtime %] by [% i.author.fullname %]</h4>
[% END %] [% contents.replace('\n','<br />\n') %]
</div> </div>
[% END %]
</div>
[% END %] [% END %]
<h2>Projects</h2> <h2>Projects</h2>

View file

@ -83,3 +83,7 @@ div.page-header h1 small {
.shell-prompt { .shell-prompt {
color: gray; color: gray;
} }
div.news-item:not(:first-child) {
margin-top: 1em;
}