Make the news look better
This commit is contained in:
parent
5f612a36ad
commit
9a98cfd793
2 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<h4>Add News:</h4>
|
<h4>Add News:</h4>
|
||||||
<form method="POST" action="/news/edit">
|
<form method="POST" action="/news/edit">
|
||||||
<textarea name="text" rows="3"></textarea>
|
<textarea class="field span10" name="text" rows="3"></textarea> <br />
|
||||||
<button type="submit" class="btn">Add</button>
|
<button type="submit" class="btn">Add</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
{{template "header.html" .S}}
|
{{template "header.html" .S}}
|
||||||
|
|
||||||
|
<h4>News:</h4>
|
||||||
|
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
{{range .News}}
|
{{range .News}}
|
||||||
|
<div class="well well-small">
|
||||||
<dt>{{.Date}}</dt>
|
<dt>{{.Date}}</dt>
|
||||||
<dd>{{.Text}}</dd>
|
<dd>{{.Text}}</dd>
|
||||||
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
Reference in a new issue