74 lines
3.0 KiB
HTML
74 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<title>Auteur | Bouquins</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta charset="utf-8" />
|
|
<link rel="stylesheet" href="css/bootstrap.min.css">
|
|
<link rel="preload" href="js/author.min.js" as="script">
|
|
<link rel="preload" href="js/vue.min.js" as="script">
|
|
<link rel="prefetch" href="js/author.min.js">
|
|
<link rel="prefetch" href="js/vue.min.js">
|
|
</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="author.id">
|
|
<h1>
|
|
<span class="glyphicon glyphicon-user"></span>
|
|
{{ author.name }}
|
|
</h1>
|
|
</div>
|
|
<div class="alert alert-danger" role="alert" v-else>Aucun livre sélectionné</div>
|
|
<ul class="nav nav-pills">
|
|
<li role="presentation" :class="{ active: tab == 'books' }"><a href="#" @click="showBooks">Livres</a></li>
|
|
<li v-if="author.series && author.series.length > 0" role="presentation" :class="{ active: tab == 'series' }"><a href="#" @click="showSeries">Series</a></li>
|
|
<li v-if="author.authors && author.authors.length > 0"role="presentation" :class="{ active: tab == 'authors' }"><a href="#" @click="showAuthors">Co-auteurs</a></li>
|
|
</ul>
|
|
<div class="panel panel-default" :class="{ hidden: tab != 'books' }">
|
|
<div class="panel-body">
|
|
<ul v-for="book in author.books" class="list-unstyled">
|
|
<li><span class="glyphicon glyphicon-book"></span>
|
|
<a :href="'book.html?id='+book.id">{{ book.title }}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default" :class="{ hidden: tab != 'series' }">
|
|
<div class="panel-body">
|
|
<ul v-for="series in author.series" class="list-unstyled">
|
|
<li><span class="glyphicon glyphicon-list"></span>
|
|
<a :href="'series.html?id='+series.id">{{ series.name }}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default" :class="{ hidden: tab != 'authors' }">
|
|
<div class="panel-body">
|
|
<ul v-for="coauthor in author.authors" class="list-unstyled">
|
|
<li> <span class="glyphicon glyphicon-user"></span>
|
|
<a :href="'author.html?id='+coauthor.id">{{ coauthor.name }}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="js/vue.min.js"></script>
|
|
<script src="js/author.min.js"></script>
|
|
</body>
|
|
</html>
|
|
|