{% extends "base.html" %}
{% load i18n %}
{% load translations %}

{% block breadcrumbs %}
<li><a href="{% url 'about' %}">{% trans "About Weblate" %}</a></li>
<li><a href="{% url 'about' %}">{% trans "Weblate keys" %}</a></li>
{% endblock %}

{% block content %}

{% include 'about/menu.html' %}

<div class="container-fluid">

<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">
{% documentation_icon 'vcs' right=True %}
{% trans "SSH key" %}
</h4>
</div>

  <div class="panel-body">
{% if ssh_key %}
  <p>{% blocktrans %}Weblate uses following SSH key to access remote repositories.{% endblocktrans %}</p>
  <div class="list-group-item pre-scrollable">
  {{ ssh_key.key|linebreaks }}
  </div>
{% else %}
  <p>{% trans "SSH key not available." %}</p>
{% endif %}
  </div>
</div>

<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">
{% documentation_icon 'admin/optionals' 'gpg-sign' right=True %}
{% trans "Commit signing" %}
</h4>
</div>

  <div class="panel-body">
{% if gpg_key %}
  <p>{% blocktrans %}Weblate signs all commits by GPG key {{ gpg_key_id }}, you can view the public key below.{% endblocktrans %}</p>
  <div class="list-group-item pre-scrollable">
  {{ gpg_key|linebreaks }}
  </div>
{% else %}
  <p>{% trans "Commit signing is not configured." %}</p>
{% endif %}
  </div>
</div>

</div>

{% endblock %}

