{% extends 'base.html' %}
{% load i18n sizeformat %}

{% block title %}{% trans "Key Pair Details" %}{% endblock %}

{% block page_header %}
  {% include "horizon/common/_detail_header.html" %}
{% endblock %}

{% block main %}
<div class="detail">
  <dl class="dl-horizontal">
    <dt>{% trans "Name" %}</dt>
    <dd>{{ keypair.name|default:_("None") }}</dd>
    <dt>{% trans "Fingerprint" %}</dt>
    <dd>{{ keypair.fingerprint|default:_("None") }}</dd>
    <dt>{% trans "Created" %}</dt>
    <dd>{{ keypair.created_at|parse_isotime}}</dd>
    {% if keypair.updated_at %}
      <dt>{% trans "Updated" %}
      <dd>{{ keypair.updated_at|parse_isotime}}</dd>
    {% endif %}
    <dt>{% trans "User ID" %}</dt>
    <dd>{{ keypair.user_id|default:_("None") }}</dd>
    <dt>{% trans "Public Key" %}</dt>
    <dd>
      <div class="key-text word-wrap">{{ keypair.public_key|default:_("None") }}</div>
    </dd>
  </dl>
</div>
{% endblock %}
