2016-12-31 11:01:38 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
2017-01-01 16:33:03 +00:00
|
|
|
<title>Livre | Bouquins</title>
|
2016-12-31 11:01:38 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<meta charset="utf-8" />
|
2017-01-01 16:05:27 +00:00
|
|
|
<link rel="stylesheet" href="css/bootstrap.min.css">
|
|
|
|
<link rel="preload" href="js/book.min.js" as="script">
|
|
|
|
<link rel="preload" href="js/vue.min.js" as="script">
|
|
|
|
<link rel="prefetch" href="js/book.min.js">
|
|
|
|
<link rel="prefetch" href="js/vue.min.js">
|
2016-12-31 11:01:38 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2017-01-14 17:50:29 +00:00
|
|
|
<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>
|
2016-12-31 11:01:38 +00:00
|
|
|
<div class="container" id="app">
|
2016-12-31 11:52:33 +00:00
|
|
|
<div class="page-header" v-if="book.id">
|
2017-01-08 16:22:50 +00:00
|
|
|
<div class="row" v-if="book.has_cover">
|
|
|
|
<img :src="bookCover(book)" alt="Pas de couverture" title="Couverture" class="img-responsive img-rounded"/>
|
|
|
|
</div>
|
2016-12-31 11:52:33 +00:00
|
|
|
<div class="row">
|
2017-01-01 15:38:13 +00:00
|
|
|
<div class="col-xs-12 col-md-9">
|
|
|
|
<h1>
|
|
|
|
<span class="glyphicon glyphicon-book"></span>
|
|
|
|
{{ book.title }}
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-3 text-right">
|
|
|
|
<template v-for="data in book.data">
|
2017-01-08 16:22:50 +00:00
|
|
|
<a :href="bookLink(book, data)" class="btn btn-success">
|
2017-01-01 15:38:13 +00:00
|
|
|
<span class="glyphicon glyphicon-download-alt"></span> Télécharger
|
|
|
|
{{ data.format }} ({{ formatBytes(data.size) }})
|
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
</div>
|
2016-12-31 11:52:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-danger" role="alert" v-else>Aucun livre sélectionné</div>
|
|
|
|
<div class="row" v-if="book.id">
|
2016-12-31 15:52:49 +00:00
|
|
|
<h2>
|
2017-01-01 15:38:13 +00:00
|
|
|
<span class="glyphicon glyphicon-user"></span> Auteur{{ book.authors.length > 1 ? 's' : '' }}
|
2016-12-31 15:52:49 +00:00
|
|
|
</h2>
|
|
|
|
<ul>
|
2017-01-07 20:19:45 +00:00
|
|
|
<li v-for="author in book.authors">
|
|
|
|
<a :href="'author.html?id='+author.id">{{ author.name }}</a>
|
|
|
|
</li>
|
2016-12-31 15:52:49 +00:00
|
|
|
</ul>
|
|
|
|
|
2016-12-31 11:52:33 +00:00
|
|
|
<h2 v-if="book.series">
|
2016-12-31 15:52:49 +00:00
|
|
|
<span class="glyphicon glyphicon-list"></span> Serie
|
2016-12-31 11:52:33 +00:00
|
|
|
</h2>
|
|
|
|
<div v-if="book.series">
|
2017-01-08 16:15:01 +00:00
|
|
|
<a :href="'series.html?id='+book.series.id">{{ book.series.name }}</a>
|
2016-12-31 11:52:33 +00:00
|
|
|
<span class="badge">{{ book.series.idx }}</span>
|
|
|
|
</div>
|
2016-12-31 15:52:49 +00:00
|
|
|
|
|
|
|
<h2><span class="glyphicon glyphicon-globe"></span> Langue</h2>
|
2017-01-01 15:38:13 +00:00
|
|
|
<ul><li>{{ book.lang.toUpperCase() }}</li></ul>
|
2016-12-31 15:52:49 +00:00
|
|
|
|
2017-01-03 21:32:46 +00:00
|
|
|
<h2 v-if="book.tags">
|
|
|
|
<span class="glyphicon glyphicon-tags"></span> Tags
|
|
|
|
</h2>
|
|
|
|
<div v-if="book.tags">
|
|
|
|
<template v-for="tag in book.tags">
|
|
|
|
<span class="label label-info">{{ tag }}</span>
|
|
|
|
</template>
|
|
|
|
</div>
|
2016-12-31 15:52:49 +00:00
|
|
|
|
|
|
|
<h2>Détails</h2>
|
|
|
|
<ul>
|
|
|
|
<li v-if="book.pubdate"><strong>Date de publication</strong> {{ book.pubdate }}</li>
|
|
|
|
<li v-if="book.publisher"><strong>Editeur</strong> {{ book.publisher }}</li>
|
|
|
|
</ul>
|
2016-12-31 11:52:33 +00:00
|
|
|
</div>
|
2016-12-31 15:52:49 +00:00
|
|
|
<!-- TODO cover -->
|
2016-12-31 11:01:38 +00:00
|
|
|
</div>
|
2017-01-01 16:05:27 +00:00
|
|
|
<script src="js/vue.min.js"></script>
|
|
|
|
<script src="js/book.min.js"></script>
|
2016-12-31 11:01:38 +00:00
|
|
|
</body>
|
|
|
|
</html>
|