{% extends 'layout_repo.html' %} {% from 'include/empty.html' import empty %} {% from 'include/table.html' import table %} {% set active_page='repo' %} {% set active_repo_page='stats' %} {% block title %} {% trans %}File Statistics{% endtrans %} {% endblock %} {% block content %}
{% trans %}The file statistics view presents a comprehensive list of changes in the backup, including new, deleted and changed files, allowing users to easily track and manage modifications to their data.{% endtrans %}
{% if date %} {% set buttons = [ {'text': _('All'), 'extend': 'clear'}, {'text': _('New'), 'extend': 'filter', 'column': 'state:name', 'search': 'new'}, {'text': _('Deleted'), 'extend': 'filter', 'column': 'state:name', 'search': 'deleted'}, {'text': _('Changed'), 'extend': 'filter', 'column': 'state:name', 'search': '^changed', 'regex':True}, {'text': _('Unchanged'), 'extend': 'filter', 'column': 'state:name', 'search': '^unchanged'}, ] %} {% set columns = [ {'name':'path', 'title': _('Path'), 'orderable': True, 'render':'text' }, {'name':'state', 'title':_('State'), 'orderable': True, 'render':'choices', 'render_arg': [ ['new',_('New')], ['deleted',_('Deleted')], ['changed',_('Changed')], ['unchanged',_('Unchanged')]] }, {'name':'size', 'title':_('Size'), 'orderable': True, 'render':'filesize', 'type':'num' }, {'name':'increment_size', 'title':_('Increment Size'), 'orderable': True, 'render':'filesize', 'type':'num' }, ] %} {{ table(url_for('stats', 'data.json', repo, date=date), columns=columns, buttons=buttons, order=[[ 0, 'desc' ]], searching=True, show_header=True, empty_message=_('File statistics are not available'), info_message=_('Displaying _START_-_END_ of _TOTAL_ file statistics'), paging=True, pageLength=20) }} {% else %} {% call empty('fa fa-list-alt', _('No File Statistics Selected')) %}{% trans %}Select a backup date on the left to display detailed statistics for that date.{% endtrans %}
{% endcall %} {% endif %}