mirror of
https://github.com/BioArchLinux/bioarchlinux-packages.git
synced 2025-03-10 06:24:00 +00:00
71 lines
No EOL
2.4 KiB
HTML
71 lines
No EOL
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Archlinuxcn Currently Building Package</title>
|
|
<link rel="stylesheet" href="https://build.archlinuxcn.org/~imlonghao/static/1.10.20-jquery.dataTables.min.css">
|
|
</head>
|
|
|
|
<body>
|
|
<table id="l" class="stripe cell-border" style="text-align:center">
|
|
</table>
|
|
<script src="https://build.archlinuxcn.org/~imlonghao/static/3.4.1-jquery.min.js"></script>
|
|
<script src="https://build.archlinuxcn.org/~imlonghao/static/1.10.20-jquery.dataTables.min.js"></script>
|
|
<script>
|
|
const DATE_FORMATTER = new Intl.DateTimeFormat(undefined, {
|
|
timeStyle: "medium",
|
|
dateStyle: "medium",
|
|
hour12: false,
|
|
});
|
|
$(document).ready(function () {
|
|
$('#l').DataTable({
|
|
"ajax": {
|
|
url: "/imlonghao-api/current",
|
|
dataSrc: ""
|
|
},
|
|
"order": [[0, "desc"]],
|
|
"paging": false,
|
|
"columnDefs": [
|
|
{
|
|
targets: 0,
|
|
title: "更新时间",
|
|
data: "updated_at",
|
|
render: function (data, type, row, meta) {
|
|
if (type == 'display') {
|
|
return DATE_FORMATTER.format(new Date(data))
|
|
} else {
|
|
return data
|
|
}
|
|
}
|
|
},
|
|
{
|
|
targets: 1,
|
|
title: "包名",
|
|
data: "pkgbase"
|
|
},
|
|
{
|
|
targets: 2,
|
|
title: "状态",
|
|
data: "status"
|
|
},
|
|
{
|
|
targets: 3,
|
|
title: "上次打包时间",
|
|
data: "elapsed"
|
|
},
|
|
{
|
|
targets: 4,
|
|
title: "打包原因",
|
|
data: "reasons",
|
|
render: function (data, type, row, meta) {
|
|
return JSON.parse(data)
|
|
}
|
|
}
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |