mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
These are the genuine improvements out of today
1. Table sorting 2. Fixed edit page title bugette 3. SimpleMDE working again.
This commit is contained in:
parent
b7a7c4cfc8
commit
392a5f82ec
6 changed files with 107 additions and 44 deletions
|
|
@ -1,10 +1,18 @@
|
|||
{% extends "templates/base.html" %}
|
||||
{% block extra-headers %}
|
||||
{% script "/vendor/node_modules/tablesort/dist/tablesort.min.js" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="content">
|
||||
<table>
|
||||
<tr>
|
||||
<th/><th>{% i18n edit-col-hdr %}</th><th>{% i18n del-col-hdr %}</th>
|
||||
<p>
|
||||
{% i18n sortable %}
|
||||
</p>
|
||||
<table id="userstable">
|
||||
<tr data-sort-method='none'>
|
||||
<th>{% i18n user-title-prefix %}</th>
|
||||
<th data-sort-method='none'>{% i18n edit-col-hdr %}</th>
|
||||
<th data-sort-method='none'>{% i18n del-col-hdr %}</th>
|
||||
</tr>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
|
|
@ -13,11 +21,12 @@
|
|||
<td><a href="delete-user?target={{user}}">{% i18n del-col-hdr %} {{user}}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<td><a href="edit-user">{% i18n add-user-label %}</a></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<tr data-sort-method='none'>
|
||||
<td colspan="3"><a href="edit-user">{% i18n add-user-label %}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
new Tablesort(document.getElementById('userstable'));
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue