forked from lix-project/hydra
Add separation between news items
This commit is contained in:
parent
a84db1c7cc
commit
f447c7d9db
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue