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

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

{% block page_header %}
  <div class='page-header'>
    {% breadcrumb_nav %}
  </div>
{% endblock %}

{% block main %}
  <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>
{% endblock %}
