go-bouquins/templates/series.html

36 lines
794 B
HTML
Raw 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 }}
2019-09-12 17:09:52 +00:00
<div class="border-bottom mb-3">
2017-07-30 16:09:27 +00:00
<h1>
2019-09-12 17:09:52 +00:00
<i class="fas fa-list"></i>
2017-08-03 17:51:56 +00:00
{{ .Name }}
2017-07-30 16:09:27 +00:00
</h1>
</div>
<h2>
2019-09-12 17:09:52 +00:00
<i class="fas fa-book"></i> Livre(s)
2017-07-30 16:09:27 +00:00
</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>
2019-09-12 17:09:52 +00:00
<i class="fas fa-user"></i> Auteur(s)
2017-07-30 16:09:27 +00:00
</h2>
<ul>
2017-08-03 17:51:56 +00:00
{{ range .Authors }}
<li class="list-unstyled">
2019-09-12 17:09:52 +00:00
<i class="fas fa-user"></i>
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" . }}