go-bouquins/templates/series.html

36 lines
862 B
HTML
Raw Permalink Normal View History

2017-07-30 16:09:27 +00:00
{{ template "header.html" . }}
<div class="container" id="app">
2017-08-06 18:25:20 +00:00
{{ if .ID }}
2017-08-03 17:51:56 +00:00
<div class="page-header">
2017-07-30 16:09:27 +00:00
<h1>
<span class="glyphicon glyphicon-list"></span>
2017-08-03 17:51:56 +00:00
{{ .Name }}
2017-07-30 16:09:27 +00:00
</h1>
</div>
<h2>
<span class="glyphicon glyphicon-book"></span> Livre(s)
</h2>
<ul>
2017-08-03 17:51:56 +00:00
{{ range .Books }}
<li class="list-unstyled">{{ .SeriesIndex }}.
2017-08-06 18:25:20 +00:00
<a href="/books/{{ .ID }}">{{ .Title }}</a>
2017-07-30 16:09:27 +00:00
</li>
2017-08-03 17:51:56 +00:00
{{ end }}
2017-07-30 16:09:27 +00:00
</ul>
<h2>
<span class="glyphicon glyphicon-user"></span> Auteur(s)
</h2>
<ul>
2017-08-03 17:51:56 +00:00
{{ range .Authors }}
<li class="list-unstyled">
2017-07-30 16:09:27 +00:00
<span class="glyphicon glyphicon-user"></span>
2017-08-06 18:25:20 +00:00
<a href="/authors/{{ .ID }}">{{ .Name }}</a>
2017-07-30 16:09:27 +00:00
</li>
2017-08-03 17:51:56 +00:00
{{ end }}
2017-07-30 16:09:27 +00:00
</ul>
2017-08-03 17:51:56 +00:00
{{ else }}
<div class="alert alert-danger" role="alert">Aucune série sélectionnée</div>
{{ end }}
2017-07-30 16:09:27 +00:00
</div>
{{ template "footer.html" . }}