197 lines
8.9 KiB
HTML
197 lines
8.9 KiB
HTML
{% extends "administration/base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="{% url 'passbook_admin:applications' %}">
|
|
<span class="pficon-applications"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Applications' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
<a href="{% url 'passbook_admin:applications' %}">
|
|
<span class="pficon pficon-ok"></span>{{ application_count }}
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="{% url 'passbook_admin:sources' %}">
|
|
<span class="pficon-resource-pool"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Sources' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
<a href="{% url 'passbook_admin:sources' %}">
|
|
<span class="pficon pficon-ok"></span>{{ source_count }}
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="{% url 'passbook_admin:providers' %}">
|
|
<span class="pficon-integration"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Providers' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
<a href="{% url 'passbook_admin:providers' %}">
|
|
{% if providers_without_application.exists %}
|
|
<span class="pficon-warning-triangle-o" data-toggle="tooltip" data-placement="right" title="{% trans 'Warning: At least one Provider has no application assigned.' %}"></span> {{ provider_count }}
|
|
{% else %}
|
|
<span class="pficon pficon-ok"></span> {{ provider_count }}
|
|
{% endif %}
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="{% url 'passbook_admin:factors' %}">
|
|
<span class="pficon-plugged"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Factors' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
{% if factor_count < 1 %}
|
|
<span class="pficon-error-circle-o" data-toggle="tooltip" data-placement="right"
|
|
title="{% trans 'No Factors configured. No Users will be able to login.' %}"></span>
|
|
{{ factor_count }}
|
|
{% else %}
|
|
<span class="pficon pficon-ok"></span>{{ factor_count }}
|
|
{% endif %}
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="{% url 'passbook_admin:policies' %}">
|
|
<span class="pficon-infrastructure"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Policies' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
{% if policies_without_attachment > 0 %}
|
|
<span class="pficon-warning-triangle-o" data-toggle="tooltip" data-placement="right"
|
|
title="{% trans 'Policies without attachment exist.' %}"></span>
|
|
{{ policy_count }}
|
|
{% else %}
|
|
<span class="pficon pficon-ok"></span>{{ policy_count }}
|
|
{% endif %}
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="{% url 'passbook_admin:invitations' %}">
|
|
<span class="pficon-migration"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Invitation' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
<a href="{% url 'passbook_admin:invitations' %}">
|
|
<span class="pficon pficon-ok"></span>{{ invitation_count }}
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="{% url 'passbook_admin:users' %}">
|
|
<span class="pficon-users"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Users' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
<a href="{% url 'passbook_admin:users' %}">
|
|
<span class="pficon pficon-ok"></span>{{ user_count }}
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="#">
|
|
<span class="pficon-bundle"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Version' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
<a href="#">
|
|
{{ version }}
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-6 col-sm-2 col-md-2">
|
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
|
<h2 class="card-pf-title">
|
|
<a href="#">
|
|
<span class="pficon-server"></span>
|
|
<span class="card-pf-aggregate-status-count"></span> {% trans 'Worker(s)' %}
|
|
</a>
|
|
</h2>
|
|
<div class="card-pf-body">
|
|
<p class="card-pf-aggregate-status-notifications">
|
|
<span class="card-pf-aggregate-status-notification">
|
|
<a href="#">
|
|
{% if worker_count < 1%}
|
|
<span class="pficon-error-circle-o" data-toggle="tooltip" data-placement="right"
|
|
title="{% trans 'No workers connected. Policies will not work and you may expect other issues.' %}"></span> {{ worker_count }}
|
|
{% else %}
|
|
<span class="pficon pficon-ok"></span>{{ worker_count }}
|
|
{% endif %}
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|