access.html 703 Bytes
Newer Older
1 2 3
{% load i18n %}
<h3>{% trans "Owner" %}</h3>
<p>
4
  {% if user == instance.owner %}
5
  {% blocktrans %}You are the current owner of this instance.{% endblocktrans %}
6 7 8 9 10 11
  {% else %}
  {% blocktrans with owner=instance.owner %}
    The current owner of this instance is {{owner}}.
  {% endblocktrans %}
  {% endif %}
  {% if user == instance.owner or user.is_superuser %}
12
  <span class="operation-wrapper">
13
  <a href="{% url "dashboard.views.vm-transfer-ownership" instance.pk %}"
14 15
      class="btn btn-link operation">{% trans "Transfer ownership..." %}</a>
  </span>
16
  {% endif %}
17 18
</p>
<h3>{% trans "Permissions"|capfirst %}</h3>
19
{% include "dashboard/_manage_access.html" with table_id="vm-access-table" %}