chore: first commit
This commit is contained in:
commit
4f811d88f2
30 changed files with 4301 additions and 0 deletions
35
frontend/templates/index.html
Normal file
35
frontend/templates/index.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="msp-hstack msp-justify-content-between">
|
||||
<h1>Axum example!</h1>
|
||||
<button class="" hx-get="/" hx-target="#example-table">Refresh</button>
|
||||
</div>
|
||||
|
||||
{% block htmx %}
|
||||
<table id="example-table" class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="msp-text-center">Database</th>
|
||||
<th class="msp-text-center">Version</th>
|
||||
<th class="msp-text-center">Database Name</th>
|
||||
<th class="msp-text-center">Current User</th>
|
||||
<th class="msp-text-center">Current Timestamp</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
<tr>
|
||||
<th>{{ row.database }}</th>
|
||||
<th>{{ row.version }}</th>
|
||||
<th>{{ row.current_database }}</th>
|
||||
<th>{{ row.current_user }}</th>
|
||||
<th>{{ row.current_timestamp }}</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock htmx %}
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue