GoGronkh/gserver/templates/index.html
Andreas Mieke f6259a8160 Rewirte of parser and server
Changed database layout and using Go path for source now
2015-09-26 00:33:55 +02:00

20 lines
857 B
HTML

{{ template "header.html" . }}
<div class="row">
<div class="large-12 columns">
<h1>{{ .title }}</h1>
<ul class="small-block-grid-2 medium-block-grid-3 large-block-grid-4">
{{ range .data }}
<li>
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/">
<img src="{{ if .EP.ThumbS.Valid }}{{ .EP.ThumbS.String }}{{ else }}https://placeholdit.imgix.net/~text?txtsize=72&txt=Kein%20Thumbnail&w=640&h=360{{ end }}">
</a>
<a href="/lets-play/{{ .LP.Slug.String }}/"><strong>{{ .LP.Name.String }}</strong></a>:
<br /><a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/">{{ .EP.Name.String }}</a>
<br />von <a href="/zeige/{{ .AT.Slug.String }}/">{{ .AT.Name.String }}</a>
</li>
{{ end }}
</ul>
</div>
</div>
{{ template "footer.html" . }}