index.html 1.48 KB
Newer Older
1
{% extends "dashboard/base.html" %}
2
{% load staticfiles %}
3 4
{% load i18n %}

5
{% block title-page %}{% trans "Index" %}{% endblock %}
6

7 8 9 10
{% block extra_link_2 %}
<link rel="search"
  type="application/opensearchdescription+xml"
  href="{% url "dashboard.views.vm-opensearch" %}"
11
  title="{% blocktrans with name=COMPANY_NAME %}{{name}} virtual machines{% endblocktrans %}" />
12 13
{% endblock %}

14
{% block content %}
15 16 17
<div class="body-content dashboard-index">
  <div class="row">

Őry Máté committed
18
    {% if perms.vm %}
19
    <div class="col-lg-4 col-sm-6">
20 21
      {% include "dashboard/index-vm.html" %}
    </div>
22 23 24 25
    {% else %}
      <div class="alert alert-info">
        {% trans "You have no permission to start or manage virtual machines." %}
      </div>
Őry Máté committed
26
    {% endif %}
27

28
    {% if perms.auth %}
29
    <div class="col-lg-4 col-sm-6">
30 31
      {% include "dashboard/index-groups.html" %}
    </div>
32
    {% endif %}
33

34
    {% if not no_store %}
35
    <div class="col-lg-4 col-sm-6">
Kálmán Viktor committed
36
      {% include "dashboard/store/index-files.html" %}
37
    </div>
38
    {% endif %}
39

Őry Máté committed
40
    {% if perms.vm.create_template %}
41
    <div class="col-lg-4 col-sm-6">
42 43
      {% include "dashboard/index-templates.html" %}
    </div>
Őry Máté committed
44
    {% endif %}
45

46
    {% if perms.vm.view_statistics %}
47
    <div class="col-lg-4 col-sm-6">
48 49
      {% include "dashboard/index-nodes.html" %}
    </div>
Őry Máté committed
50
    {% endif %}
51 52 53 54 55 56

    {% if perms.auth.change_user %}
    <div class="col-lg-4 col-sm-6">
      {% include "dashboard/index-users.html" %}
    </div>
    {% endif %}
57 58
  </div>
</div>
59
{% endblock %}