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

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

6
{% block content %}
7 8 9
<div class="body-content dashboard-index">
  <div class="row">

Őry Máté committed
10
    {% if perms.vm %}
11
    <div class="col-lg-4 col-sm-6">
12 13
      {% include "dashboard/index-vm.html" %}
    </div>
14 15 16 17
    {% else %}
      <div class="alert alert-info">
        {% trans "You have no permission to start or manage virtual machines." %}
      </div>
Őry Máté committed
18
    {% endif %}
19

20
    {% if perms.auth %}
21
    <div class="col-lg-4 col-sm-6">
22 23
      {% include "dashboard/index-groups.html" %}
    </div>
24
    {% endif %}
25

26
    {% if not no_store %}
27
    <div class="col-lg-4 col-sm-6">
Kálmán Viktor committed
28
      {% include "dashboard/store/index-files.html" %}
29
    </div>
30
    {% endif %}
31

Őry Máté committed
32
    {% if perms.vm.create_template %}
33
    <div class="col-lg-4 col-sm-6">
34 35
      {% include "dashboard/index-templates.html" %}
    </div>
Őry Máté committed
36
    {% endif %}
37

Őry Máté committed
38
    {% if user.is_superuser %}
39
    <div class="col-lg-4 col-sm-6">
40 41
      {% include "dashboard/index-nodes.html" %}
    </div>
Őry Máté committed
42
    {% endif %}
43 44
  </div>
</div>
45
{% endblock %}
46

47
{% block extra_js %}
48
<script src="{{ STATIC_URL }}dashboard/vm-create.js"></script>
49
<script src="{{ STATIC_URL }}dashboard/node-create.js"></script>
50
{% endblock %}