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>
|
||||
<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>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{{template "header.html" .S}}
|
||||
|
||||
<h4>News:</h4>
|
||||
|
||||
<dl class="dl-horizontal">
|
||||
{{range .News}}
|
||||
<div class="well well-small">
|
||||
<dt>{{.Date}}</dt>
|
||||
<dd>{{.Text}}</dd>
|
||||
</div>
|
||||
{{end}}
|
||||
</dl>
|
||||
|
||||
|
|
Reference in a new issue