{% load i18n sizeformat %}

<div class="detail">
  <dl class="dl-horizontal">
    <dt>{% trans "Stack Resource ID" %}</dt>
    <dd>{{ resource.resource_name }}</dd>
    <dt>{% trans "Resource ID" %}</dt>
    <dd>
      {% if resource_url %}
      <a href="{{ resource_url }}">
          {{ resource.physical_resource_id }}
      </a>
      {% else %}
      {{ resource.physical_resource_id }}
      {% endif %}
    </dd>
    <dt>{% trans "Stack Resource Type" %}</dt>
    <dd>{{ resource.resource_type }}</dd>
  