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

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

View file

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