{# Rdiffweb SSHKeys plugins Copyright (C) 2012-2021 rdiffweb contributors This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . #}
{% include 'message.html' %} {% from 'include/modal_dialog.html' import modal_dialog, button_confirm, modal_confirm %}
{% trans %}SSH Keys{% endtrans %} ({{ sshkeys | length }})

{% trans %}SSH keys allow you to establish a secure connection between your computer and this backup system. This is a list of SSH keys associated with your account. Remove any keys that you do not recognize.{% endtrans %}

{% if not is_maintainer %}

{% trans %}Ask your administrator to delete SSH Keys.{% endtrans %}

{% endif %}
{# Dialog to create SSH key. #} {% call modal_dialog('add-sshkey-modal',_('Add SSH key'), _('Add SSH key')) %}
{{ form.title.label(class="col-sm-2 control-label") }}
{{ form.title(class="form-control") }}

{{form.title.description}}

{{ form.key.label(class="col-sm-2 control-label") }}
{{ form.key(class="form-control", rows="10") }}

{{form.key.description}}

{% endcall %} {{ modal_confirm( id='delete-sshkey-modal', title=_('Delete SSH key'), message=_("Are you sure you want to delete this SSH Key?"), fields=['action', 'fingerprint'], submit=_('Delete')) }}