{% extends 'base.html' %}
{% load i18n %}
{% block title %}{% blocktrans %}Download Key Pair{% endblocktrans %}{% endblock %}

{% block main %}
  <div class="modal-header">
    <h3>{% blocktrans %}The key pair &quot;{{ keypair_name }}&quot; should download automatically. If not use the link below.{% endblocktrans %}</h3>
  </div>
  <div class="modal-body clearfix">
    <a href="{% url 'horizon:project:access_and_security:keypairs:generate' keypair_name "regenerate" %}">
      {% blocktrans %}Download key pair &quot;{{ keypair_name }}&quot;{% endblocktrans %}
    </a>
  </div>
  <script type="text/javascript" charset="utf-8">
    $(document).ready(function() {
      document.location = '{% url 'horizon:project:access_and_security:keypairs:generate' keypair_name %}';
    });
  </script>
{% endblock %}
