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

4
{% block title-page %}{% trans "Dashboard" %}{% 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 12 13
    <div class="col-lg-4 col-md-6">
      {% include "dashboard/index-vm.html" %}
    </div>
Őry Máté committed
14
    {% endif %}
15 16 17 18 19 20 21 22 23

    <div class="col-lg-4 col-md-6">
      {% include "dashboard/index-groups.html" %}
    </div>

    <div class="col-lg-4 col-md-6">
      {% include "dashboard/index-files.html" %}
    </div>

Őry Máté committed
24
    {% if perms.vm.create_template %}
25 26 27
    <div class="col-lg-4 col-md-6">
      {% include "dashboard/index-templates.html" %}
    </div>
Őry Máté committed
28
    {% endif %}
29

Őry Máté committed
30
    {% if user.is_superuser %}
31 32 33
    <div class="col-lg-4 col-md-6">
      {% include "dashboard/index-nodes.html" %}
    </div>
Őry Máté committed
34
    {% endif %}
35 36
  </div>
</div>
37
{% endblock %}
38

39
{% block extra_js %}
40 41
<script src="{{ STATIC_URL }}dashboard/vm-create.js"></script>
<script src="{{ STATIC_URL }}dashboard/node-create.js"></script>   
42
{% endblock %}