{% extends 'admin.html' %} {% from 'include/datatables.html' import datatables %} {% block title %} {% trans %}Repositories management{% endtrans %} {% endblock %} {% set admin_nav_active="repos" %} {% macro btn(url, label, icon) %} {% endmacro %} {% block content %} {% set buttons = [ {'text': _('All'), 'extend': 'clear'}, {'text': _('Healthy'), 'extend': 'filter', 'column': 2, 'search': 'ok'}, {'text': _('Failed'), 'extend': 'filter', 'column': 2, 'search': 'failed'}, {'text': _('Interrupted'), 'extend': 'filter', 'column': 2, 'search': 'interrupted'}, {'text': _('In progress'), 'extend': 'filter', 'column': 2, 'search': 'in_progress'}, ] %} {% call() datatables(_('Repository list'), buttons) %} {% trans %}Display Name{% endtrans %} {% trans %}Owner{% endtrans %} {% trans %}Status{% endtrans %} {% trans %}Inactivity Notification Period{% endtrans %} {% trans %}Data Retention Duration{% endtrans %} {% trans %}Errors were detected in the last backup{% endtrans %} {% for repo in repos %} {% if repo.status[0] != 'ok' %} {% else %} {% endif %} {{ repo.display_name }} {{ repo.owner }} {% if repo.last_backup_date %} {% trans %}Updated {% endtrans %} {% endif %} {% if repo.status[0] != 'ok' %}{{ repo.status[1] }}{% endif %} {% if repo.maxage %} {% trans num=repo.maxage %}{{ num }} days{% endtrans %} {% else %} {% trans %}Disabled{% endtrans %} {% endif %} {% if repo.keepdays>=1 %} {% trans num=repo.keepdays %}{{ num }} days{% endtrans %} {% else %} {% trans %}Forever{% endtrans %} {% endif %} {% if repo.error_log %}{{ _('No') if repo.error_log[-1].is_empty else _('Yes') }}{% endif %}
{{ btn(url_for('settings', repo), _('Settings'), 'fa fa-sliders') }} {{ btn(url_for('graphs', 'activities', repo), _('Graphs'), 'fa fa-area-chart') }} {{ btn(url_for('stats', repo), _('Stats'), 'fa fa-list-alt') }} {{ btn(url_for('logs', repo), _('Logs'), 'fa fa-file-text-o') }}
{% endfor %} {% endcall %} {% endblock %}