Pracownia.Programowania/views/index.html
2018-12-11 20:42:44 +01:00

28 lines
505 B
HTML

{{ define "index" }}
{{ template "header" }}
{{ range $key, $value := . }}
<div class="row">
<div class="col-xs-2"></div>
<div class="col-xs-8">
<h1><a href ="/edit?id={{$value.Id}}">{{ $value.Title }}</a></h1>
</div>
<div class="col-xs-2"></div>
</div>
<div class="row">
<div class="col-xs-2"></div>
<div class="col-xs-8">
{{ $value.Content }}
</div>
<div class="col-xs-2"></div>
</div>
{{end}}
{{ template "footer" }}
{{ end }}