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

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

6 7 8
{% block navbar-ul %}
  <li class="dropdown" id="notification-button">
    <a href="{% url "dashboard.views.notifications" %}" style="color: white; font-size: 12px;" class="dropdown-toggle" data-toggle="dropdown">
9
      {% trans "Notifications" %}{% if new_notifications %} <span class="badge">{{ new_notifications }}</span>{% endif %}
10 11
    </a>
    <ul class="dropdown-menu notification-messages">
12
        <li>{% trans "Loading..." %}</li>
13 14 15 16
    </ul>
  </li>
{% endblock %}

17
{% block content %}
18 19 20
<div class="body-content dashboard-index">
  <div class="row">

Őry Máté committed
21
    {% if perms.vm %}
22
    <div class="col-lg-4 col-sm-6">
23 24
      {% include "dashboard/index-vm.html" %}
    </div>
Őry Máté committed
25
    {% endif %}
26

27
    <div class="col-lg-4 col-sm-6">
28 29 30
      {% include "dashboard/index-groups.html" %}
    </div>

31
    {% comment %}
32
    <div class="col-lg-4 col-sm-6">
33 34
      {% include "dashboard/index-files.html" %}
    </div>
35
    {% endcomment %}
36

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

Őry Máté committed
43
    {% if user.is_superuser %}
44
    <div class="col-lg-4 col-sm-6">
45 46
      {% include "dashboard/index-nodes.html" %}
    </div>
Őry Máté committed
47
    {% endif %}
48 49
  </div>
</div>
50
{% endblock %}
51

52
{% block extra_js %}
53 54
<script src="{{ STATIC_URL }}dashboard/vm-create.js"></script>
<script src="{{ STATIC_URL }}dashboard/node-create.js"></script>   
55
{% endblock %}