48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<title>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/index.min.js" as="script">
|
|
<link rel="preload" href="js/vue.min.js" as="script">
|
|
<link rel="prefetch" href="js/index.min.js">
|
|
<link rel="prefetch" href="js/vue.min.js">
|
|
</head>
|
|
<body>
|
|
<div class="container" id="app">
|
|
<div class="jumbotron">
|
|
<h1>Bouquins</h1>
|
|
<p>Cette bibliothèque contient actuellement <strong>{{ booksCount }}</strong> livres et BD en format papier ou électronique.</p>
|
|
<button class="btn btn-primary" type="button" v-on:click="loadBooks">Livres</button>
|
|
</div>
|
|
<div class="table-responsive" v-if="books.length > 0">
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>Titre</th>
|
|
<th>Auteur(s)</th>
|
|
<th>Serie</th>
|
|
</tr>
|
|
<tr v-for="book in books">
|
|
<td><span class="glyphicon glyphicon-book"></span>{{ book.title }}</td>
|
|
<td>
|
|
<template v-for="author in book.authors">
|
|
<span class="glyphicon glyphicon-user"></span>{{ author.name }}
|
|
</template>
|
|
</td>
|
|
<td>
|
|
<template v-if="book.series">
|
|
<span class="glyphicon glyphicon-list"></span>{{ book.series ? book.series.name : '' }}
|
|
<span class="badge">{{ book.series ? book.series.idx : '' }}</span>
|
|
</template>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script src="js/vue.min.js"></script>
|
|
<script src="js/index.min.js"></script>
|
|
</body>
|
|
</html>
|