Display full book data
This commit is contained in:
parent
c399fece1e
commit
6e6a9f310e
23
book.html
23
book.html
@ -18,19 +18,38 @@
|
||||
<span class="glyphicon glyphicon-book"></span>
|
||||
{{ book.title }}
|
||||
</h1>
|
||||
<!-- TODO download -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert alert-danger" role="alert" v-else>Aucun livre sélectionné</div>
|
||||
<div class="row" v-if="book.id">
|
||||
<h2>
|
||||
<span class="glyphicon glyphicon-user"></span> Auteur{{ book.authors.size > 1 ? 's' : '' }}
|
||||
</h2>
|
||||
<ul>
|
||||
<li v-for="author in book.authors">{{ author.name }}</li>
|
||||
</ul>
|
||||
|
||||
<h2 v-if="book.series">
|
||||
<span class="glyphicon glyphicon-list"></span>
|
||||
Serie
|
||||
<span class="glyphicon glyphicon-list"></span> Serie
|
||||
</h2>
|
||||
<div v-if="book.series">
|
||||
{{ book.series.name }}
|
||||
<span class="badge">{{ book.series.idx }}</span>
|
||||
</div>
|
||||
|
||||
<h2><span class="glyphicon glyphicon-globe"></span> Langue</h2>
|
||||
<div>{{ book.lang }}</div>
|
||||
|
||||
<!-- TODO tags -->
|
||||
|
||||
<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>
|
||||
</div>
|
||||
<!-- TODO cover -->
|
||||
</div>
|
||||
<script src="js/vue.min.js"></script>
|
||||
<script src="js/book.min.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user