Add html index page that lists repo contents
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
---
|
||||
source: src/index.rs
|
||||
expression: html
|
||||
---
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border: 2px solid rgb(140 140 140);
|
||||
font-family: sans-serif;
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
caption {
|
||||
caption-side: bottom;
|
||||
padding: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
thead,
|
||||
tfoot {
|
||||
background-color: rgb(228 240 245);
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
border: 1px solid rgb(160 160 160);
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
td:last-of-type {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tbody > tr:nth-of-type(even) {
|
||||
background-color: rgb(237 238 242);
|
||||
}
|
||||
|
||||
tfoot th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
tfoot td {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Flatpak Repository</h1>
|
||||
<table>
|
||||
<caption>
|
||||
Applications in repository
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Name</th>
|
||||
<th scope="col">App ID</th>
|
||||
<th scope="col">Version</th>
|
||||
<th scope="col">Branch</th>
|
||||
<th scope="col">Runtime</th>
|
||||
<th scope="col">Size (Installed)</th>
|
||||
<th scope="col">Size (Download)</th>
|
||||
<th scope="col">Arch</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Foobar</th>
|
||||
<td>org.example.Foobar</td>
|
||||
<td></td>
|
||||
<td>master</td>
|
||||
<td>org.freedesktop.Platform/x86_64/25.08</td>
|
||||
<td>103.6 MB</td>
|
||||
<td>43.0 MB</td>
|
||||
<td>x86_64</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Barfoo</th>
|
||||
<td>com.example.Barfoo</td>
|
||||
<td>1.2.3</td>
|
||||
<td>master</td>
|
||||
<td>org.freedesktop.Platform/aarch64/25.08</td>
|
||||
<td>14.8 MB</td>
|
||||
<td>6.2 MB</td>
|
||||
<td>aarch64</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user