index.html 1.18 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
    <div class="col-lg-4 col-sm-6">
Kálmán Viktor committed
27
      {% include "dashboard/store/index-files.html" %}
28 29
    </div>

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

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

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