Skip to content

Commit

Permalink
Add data-order to Admin View User Repos #324
Browse files Browse the repository at this point in the history
  • Loading branch information
ikus060 committed Feb 14, 2025
1 parent b6f461c commit 9f6bb59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ develop-eggs
.installed.cfg
.eggs
.sass-cache
.venv
rdw.db
rdw.db-shm
rdw.db-wal

# Installer logs
pip-log.txt
Expand Down
6 changes: 3 additions & 3 deletions rdiffweb/templates/admin_repos.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<th scope="col" data-type="num">{% trans %}Status{% endtrans %}</th>
<th scope="col" data-type="num">{% trans %}Inactivity Notification Period{% endtrans %}</th>
<th scope="col" data-type="num">{% trans %}Data Retention Duration{% endtrans %}</th>
<th scope="col" data-type="num">{% trans %}Errors were detected in the last backup{% endtrans %}</th>
<th scope="col">{% trans %}Errors were detected in the last backup{% endtrans %}</th>
<th scope="col" data-sortable="false"></th>
</tr>
</thead>
Expand All @@ -56,14 +56,14 @@
{% endif %}
{% if repo.status[0] != 'ok' %}{{ repo.status[1] }}{% endif %}
</td>
<td data-search="{{ repo.maxage }}">
<td data-search="{{ repo.maxage }}" data-order="{{ repo.maxage }}">
{% if repo.maxage %}
{% trans num=repo.maxage %}{{ num }} days{% endtrans %}
{% else %}
{% trans %}Disabled{% endtrans %}
{% endif %}
</td>
<td data-search="">
<td data-search="" data-order="{{ repo.keepdays }}">
{% if repo.keepdays>=1 %}
{% trans num=repo.keepdays %}{{ num }} days{% endtrans %}
{% else %}
Expand Down

0 comments on commit 9f6bb59

Please sign in to comment.