{% extends "admin/base_site.html" %} {% load i18n admin_static bootstrapped_goodies_tags ninecms_extras %} {% comment %} Index template Author: George Karakostas Copyright: Copyright 2015, George Karakostas Licence: BSD-3 Email: gkarak@9-dev.com {% endcomment %} {% block extrastyle %}{{ block.super }}{% endblock %} {% block coltype %}colMS{% endblock %} {% block bodyclass %}{{ block.super }} dashboard{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content-navbar-collapse %} {% endblock %} {% block object-tools %} {% endblock %} {% block content %}
{% get_status as status %}
{# STATUS: counters #} {% for stat in status.user_stats %} {% endfor %} {# STATUS: checks #} {% if user.is_superuser %}
{% glyphicon 'tag' %}  9cms version
{{ status.version }}
{% glyphicon 'cog' %}  Updates
{% if status.updates %} {% glyphicon 'remove' %} {% glyphicon 'circle-arrow-down' %} {% else %} {% glyphicon 'ok' %} {% endif %}
{% glyphicon 'th-list' %}  Django check
{% if status.django_check.stderr %} {% glyphicon 'remove' %} {% glyphicon 'circle-arrow-down' %} {% else %} {% glyphicon 'ok' %} {% endif %}
{% glyphicon 'road' %}  Database migrations
{% if status.migrations %} {% glyphicon 'remove' %} {% glyphicon 'circle-arrow-down' %} {% else %} {% glyphicon 'ok' %} {% endif %}
{% glyphicon 'cog' %}  Permissions
{% if not status.permissions.status %} {% glyphicon 'remove' %} {% glyphicon 'circle-arrow-down' %} {% else %} {% glyphicon 'ok' %} {% endif %}
{% glyphicon 'picture' %}  Image library
{% if status.imagemagick %} {% glyphicon 'remove' %} {% else %} {% glyphicon 'ok' %} {% endif %}
{% endif %}
{# STATUS: additional information #} {% if status.updates and user.is_superuser %}

Site updates

{{ status.updates|join:'
' }}
{% endif %} {% if status.django_check.stderr and user.is_superuser %}

Django check report

{{ status.django_check.stderr|linebreaks }}
{% endif %} {% if status.migrations and user.is_superuser %}

Database migrations

{# #} {# #} {#
{{ status.migrations|join:'
' }}
#} {{ status.migrations|join:'
' }}
{% endif %} {# STATUS: models #} {% for app in app_list %}
{% include "admin/bootstrapped_extra/app_name.html" %} {% render_app_description app %}
{% for model in app.models %} {% endfor %}
{% if model.admin_url %} {{ model.name }} {% else %} {{ model.name }} {% endif %} {% if model.add_url or model.admin_url%}
{% if model.add_url %} {% trans 'Add' %} {% endif %} {% if model.admin_url %} {% trans 'Change' %} {% endif %}
{% endif %}
{% empty %}

{% trans "You don't have permission to edit anything." %}

{% endfor %} {# STATUS: additional information below #} {% if user.is_superuser %}

Packages

{% for package in status.packages %} {% cycle 'row' '' as row silent %} {% if row %}{% endif %} {% if not row %}{% endif %} {% endfor %}
{{ package }}

Permission check

{% for perm in status.permissions.perms %} {% endfor %}
{{ perm.0 }}{% glyphicon perm.1|yesno:'ok,remove,minus' %}
{% endif %}
{% endblock %} {% block sidebar %} {% endblock %}