forked from lix-project/hydra
Add separation between news items
This commit is contained in:
parent
a84db1c7cc
commit
f447c7d9db
|
@ -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 %]
|
||||
|
|
|
@ -83,3 +83,7 @@ div.page-header h1 small {
|
|||
.shell-prompt {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
div.news-item:not(:first-child) {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue