go-bouquins/templates/series.html

61 lines
2.1 KiB
HTML
Raw Normal View History

2017-07-30 13:39:20 +00:00
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Serie | Bouquins</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
2017-07-30 14:13:10 +00:00
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="preload" href="/js/series.min.js" as="script">
<link rel="preload" href="/js/vue.min.js" as="script">
<link rel="prefetch" href="/js/series.min.js">
<link rel="prefetch" href="/js/vue.min.js">
2017-07-30 13:39:20 +00:00
</head>
<body>
<nav class="navbar navbar-inverse" id="nav">
<div class="container">
<ul class="nav navbar-nav">
<li><a href="index.html">Accueil</a></li>
<li><a href="search.html">Recherche</a></li>
<li><a href="#">A propos</a></li>
</ul>
<form class="navbar-form navbar-right" role="search" method="get" action="search.html">
<div class="form-group">
<input name="q" type="text" class="form-control" placeholder="Recherche">
</div>
</form>
</div>
</nav>
<div class="container" id="app">
<div class="page-header" v-if="series">
<h1>
<span class="glyphicon glyphicon-list"></span>
2017-07-30 15:20:48 +00:00
{{ .Series.Name }}
2017-07-30 13:39:20 +00:00
</h1>
</div>
<div class="alert alert-danger" role="alert" v-else>Aucune série sélectionnée</div>
<template v-if="series">
<h2>
<span class="glyphicon glyphicon-book"></span> Livre(s)
</h2>
<ul>
2017-07-30 15:20:48 +00:00
<li v-for="book in series.books" class="list-unstyled">{{ .Book.Series.Idx }}.
<a :href="'book.html?id='+book.id">{{ .Book.Title }}</a>
2017-07-30 13:39:20 +00:00
</li>
</ul>
<h2>
<span class="glyphicon glyphicon-user"></span> Auteur(s)
</h2>
<ul>
<li v-for="author in series.authors" class="list-unstyled">
<span class="glyphicon glyphicon-user"></span>
2017-07-30 15:20:48 +00:00
<a :href="'author.html?id='+author.id">{{ .Author.Name }}</a>
2017-07-30 13:39:20 +00:00
</li>
</ul>
</template>
</div>
<script src="js/vue.min.js"></script>
<script src="js/series.min.js"></script>
</body>
</html>