index.html 1.45 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
      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
    <div class="col-lg-4 col-sm-6">
32 33 34
      {% include "dashboard/index-files.html" %}
    </div>

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

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

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