Pracownia.Programowania/views/index.html

28 lines
505 B
HTML
Raw Normal View History

2018-12-08 23:15:39 +01:00
{{ define "index" }}
{{ template "header" }}
2018-12-11 20:42:44 +01:00
{{ range $key, $value := . }}
2018-12-08 23:15:39 +01:00
<div class="row">
<div class="col-xs-2"></div>
2018-12-11 20:42:44 +01:00
<div class="col-xs-8">
<h1><a href ="/edit?id={{$value.Id}}">{{ $value.Title }}</a></h1>
</div>
2018-12-08 23:15:39 +01:00
<div class="col-xs-2"></div>
</div>
<div class="row">
<div class="col-xs-2"></div>
2018-12-11 20:42:44 +01:00
<div class="col-xs-8">
{{ $value.Content }}
</div>
2018-12-08 23:15:39 +01:00
<div class="col-xs-2"></div>
2018-12-11 20:42:44 +01:00
</div>
{{end}}
2018-12-08 23:15:39 +01:00
{{ template "footer" }}
{{ end }}