gl-website-deployer/views/admin.mustache
2024-11-19 08:02:04 +01:00

71 lines
2.2 KiB
Plaintext

<!doctype html>
<html lang="en">
{{> header }}
<style>
.label_journal, .label_authors, .label_ads, .label_title {
font-weight: bold;
color: red;
}
.label_arxiv {
color: blue;
border-bottom: 1px dotted;
}
.label_arxiv:hover {
color: red;
border-bottom: none;
}
.author:hover {
background-color: #0000f0;
color: #f00000;
}
</style>
<body>
<div class="container">
<h1>Hello, world!</h1>
<button type="button" class="btn btn-primary" data-bind="click: init_db">Init DB</button>
<button type="button" class="btn btn-primary" data-bind="click: refresh_papers">Get new papers</button>
<button type="button" class="btn btn-primary" data-bind="click: list_papers">List papers</button>
<button type="button" class="btn btn-primary" data-bind="click: logout">Logout</button>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" data-bind="checked: show_all_papers">
<label class="form-check-label">Show all papers?</label>
</div>
<div class="row" style="margin-top:1em">
<div class="alert alert-success" role="alert" style="display: none" data-bind="visible: (result_status()==0)">
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Success:"><use xlink:href="#check-circle-fill"/></svg>
Result of the query:
<hr/>
<p class="mb-0" data-bind="text: result"></p>
</div>
</div>
<div class="row" style="margin-top:1em">
<div class="alert alert-danger" role="alert" style="display: none" data-bind="visible: (result_status()==1)">
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:"><use xlink:href="#exclamation-triangle-fill"/></svg>
Error during the query:
<hr/>
<p class="mb-0" data-bind="text: result"></p>
<p class="mb-0" data-bind="foreach: result_trace">
<span data-bind="text: file"></span>: <span data-bind="text: $data['function']"></span> (line <span data-bind="text: line"></span>)<br/>
</p>
</div>
</div>
{{> papers }}
</div>
</body>
{{> footer}}
</html>