bouquins-bchs/index.html
2016-12-30 18:46:03 +01:00

37 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Bouquins</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="preload" href="cgi-bin/bouquins/books">
<link rel="preload" href="index.js" as="script">
<link rel="preload" href="vue.min.js" as="script">
<link rel="prefetch" href="cgi-bin/bouquins/books">
<link rel="prefetch" href="index.js">
<link rel="prefetch" href="vue.min.js">
</head>
<body>
<h1>Bouquins</h1>
<div id="app">
<h2>{{ booksCount }} books</h2>
<table>
<tr v-for="book in books">
<td>{{ book.id }}</td>
<td>{{ book.title }}</td>
<td>{{ book.series ? book.series.name : '' }}</td>
<td>{{ book.series ? book.series.idx : '' }}</td>
<td>
<template v-for="author in book.authors">
{{ author.name }}
</template>
</td>
</tr>
</table>
</div>
<script src="vue.min.js"></script>
<script src="index.js"></script>
</body>
</html>