3b3597aa1f
- Fixed js error on dashboard page if no cookie is found. - Use cookies only until end of session. For dashboard cookies use url /dashboard only. - Updated permission numbering of builtin groups and added can_use_chat permission. - Used minified version of jquery.cookie. - Added TODO comment for django session way from pull request.
43 lines
1.4 KiB
HTML
43 lines
1.4 KiB
HTML
{% extends 'base.html' %}
|
||
|
||
{% load i18n %}
|
||
{% load staticfiles %}
|
||
|
||
{% block header %}
|
||
<link type="text/css" rel="stylesheet" media="all" href="{% static 'css/dashboard.css' %}" />
|
||
{% endblock %}
|
||
|
||
{% block javascript %}
|
||
<script type="text/javascript" src="{% static 'js/jquery/jquery.form.js' %}"></script>
|
||
<script type="text/javascript" src="{% static 'js/dashboard.js' %}"></script>
|
||
{% endblock %}
|
||
|
||
{% block title %}{% trans 'Dashboard' %} – {{ block.super }}{% endblock %}
|
||
|
||
{% block content %}
|
||
<h1>{% trans 'Dashboard' %}
|
||
<small class="pull-right">
|
||
<a href="{% url 'core_select_widgets' %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Manage widgets' %}">
|
||
<i class="icon-th-large"></i>
|
||
{% trans 'Widgets' %}
|
||
</a>
|
||
</small>
|
||
</h1>
|
||
<div class="row-fluid">
|
||
<div class="span6 column" id="col1">
|
||
{% for widget in widgets %}
|
||
{% if widget.default_column == 1 %}
|
||
{{ widget.get_html }}
|
||
{% endif %}
|
||
{% endfor %}
|
||
</div>
|
||
<div class="span6 column" id="col2">
|
||
{% for widget in widgets %}
|
||
{% if widget.default_column == 2 %}
|
||
{{ widget.get_html }}
|
||
{% endif %}
|
||
{% endfor %}
|
||
</div>
|
||
</div>
|
||
{% endblock %}
|