{% extends 'layout_repo.html' %} {% from 'include/panel.html' import panel %} {% from 'include/modal_dialog.html' import modal_dialog, button_confirm, modal_confirm %} {% from 'include/widget.html' import maxage_dropdown, encoding_dropdown %} {% set active_page='repo' %} {% set active_repo_page='settings' %} {% block title %}{% trans %}Settings{% endtrans %}{% endblock %} {% block content %} {% call panel(title=_("Character encoding"), class='default') %}
{% trans %}This value may need to be changed if your files are not displayed with the right characters. This is very common for non-english speaker.{% endtrans %}
{{ encoding_dropdown(class="form-control", name="new_encoding", id="new_encoding", value=repo.encoding) }}
{% endcall %} {% call panel(title=_("Remove older"), class='default') %}
{% trans %}You can parameterize the storage time of earlier versions for each repository. Changing this value may free up disk space.{% endtrans %}
{% if not is_maintainer %} {% trans %}Ask your administrator to change this setting.{% endtrans %} {% endif %}
{% endcall %} {% call panel(title=_("Notification"), class='default') %}
{% trans %}An email notification will be sent if backup is inactive for the given period of time.{% endtrans %}
{{ maxage_dropdown(class="form-control", name="maxage", value=repo.maxage)}}
{% endcall %} {% call panel(title=_("Delete repository"), class='danger') %}
{% trans %}Deleting the repository will permanently delete all related resources including files, history, status etc.{% endtrans %}
{% trans %}Deleted repository cannot be restored!{% endtrans %}
{{ button_confirm(label=_('Delete'), target="#delete-repo-modal", confirm=repo.display_name, disabled=not is_maintainer, redirect=url_for('/'), url=url_for('delete', repo)) }}
{% if not is_maintainer %} {% trans %}Ask your administrator if you want to delete this repository.{% endtrans %} {% endif %}
{% endcall %} {{ modal_confirm( id='delete-repo-modal', title=_('Confirmation required'), message=_("You are about to permanently delete this repository. Deleted repository CANNOT be restored! Are you ABSOLUTELY sure?"), fields=['action'], submit=_('Delete'), confirm_field='confirm') }} {% endblock %}