access.html 764 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
  {% else %}
7 8
  {% blocktrans with owner=instance.owner name=instance.owner.get_full_name%}
    The current owner of this instance is <strong>{{name}} ({{owner}})</strong>.
9 10 11
  {% 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" %}