GoGronkh/gserver/templates/index.html
Andreas Mieke 0e5c002d13 gserver: Adding alt tags to img
Also changing the textsize of the not found placeholders
2015-09-27 11:10:28 +02:00

20 lines
895 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-4 large-block-grid-5">
{{ range .data }}
<li>
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/">
<img alt="{{ .EP.Name.String }} Thumbnail" src="{{ if .EP.ThumbS.Valid }}{{ .EP.ThumbS.String }}{{ else }}https://placeholdit.imgix.net/~text?txtsize=36&txt=Kein%20Thumbnail&w=265&h=149{{ 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" . }}