authentik/passbook/admin/templates/administration/overview.html

258 lines
11 KiB
HTML
Raw Normal View History

2018-11-11 12:41:48 +00:00
{% extends "administration/base.html" %}
{% load i18n %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">
<div class="pf-c-content">
<h1>{% trans 'System Overview' %}</h1>
</div>
</section>
2020-02-19 20:03:39 +00:00
<section class="pf-c-page__main-section">
<div class="pf-l-gallery pf-m-gutter">
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:applications' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-applications"></i> {% trans 'Applications' %}
</div>
2019-02-21 15:06:57 +00:00
</div>
2020-02-19 20:03:39 +00:00
<div class="pf-c-card__body">
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ application_count }}
</p>
2019-02-21 15:06:57 +00:00
</div>
2020-02-19 20:03:39 +00:00
</a>
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:sources' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-middleware"></i> {% trans 'Sources' %}
</div>
2019-02-21 15:06:57 +00:00
</div>
2020-02-19 20:03:39 +00:00
<div class="pf-c-card__body">
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ source_count }}
</p>
2020-02-19 20:03:39 +00:00
</div>
</a>
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:providers' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-plugged"></i> {% trans 'Providers' %}
</div>
2020-02-19 20:03:39 +00:00
</div>
<div class="pf-c-card__body">
{% if providers_without_application.exists %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-exclamation-triangle"></i> {{ provider_count }}
</p>
<p>{% trans 'Warning: At least one Provider has no application assigned.' %}</p>
2020-02-19 20:03:39 +00:00
{% else %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ provider_count }}
</p>
2020-02-19 20:03:39 +00:00
{% endif %}
</div>
</a>
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:stages' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-plugged"></i> {% trans 'Stages' %}
</div>
2019-02-21 15:06:57 +00:00
</div>
<div class="pf-c-card__body">
2020-05-24 00:17:11 +01:00
{% if stage_count < 1 %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="pficon-error-circle-o"></i> {{ stage_count }}
</p>
<p>{% trans 'No Stages configured. No Users will be able to login.' %}"></p>
{% else %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ stage_count }}
</p>
{% endif %}
2019-02-21 15:06:57 +00:00
</div>
</a>
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:stages' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
2020-05-24 00:17:11 +01:00
<i class="pf-icon pf-icon-topology"></i> {% trans 'Flows' %}
</div>
</div>
<div class="pf-c-card__body">
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ flow_count }}
</p>
2020-05-24 00:17:11 +01:00
</div>
</a>
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:policies' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-infrastructure"></i> {% trans 'Policies' %}
</div>
2019-02-21 15:06:57 +00:00
</div>
<div class="pf-c-card__body">
{% if policies_without_binding %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-exclamation-triangle"></i> {{ policy_count }}
</p>
<p>{% trans 'Policies without binding exist.' %}</p>
{% else %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ policy_count }}
</p>
{% endif %}
2019-02-21 15:06:57 +00:00
</div>
</a>
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:stage-invitations' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-migration"></i> {% trans 'Invitation' %}
</div>
</div>
<div class="pf-c-card__body">
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ invitation_count }}
</p>
</div>
</a>
2020-07-07 12:13:15 +01:00
<a href="{% url 'passbook_admin:users' %}" class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-user"></i> {% trans 'Users' %}
</div>
</div>
<div class="pf-c-card__body">
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ user_count }}
</p>
</div>
</a>
2020-07-07 12:13:15 +01:00
<div class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-bundle"></i> {% trans 'Version' %}
</div>
</div>
<div class="pf-c-card__body">
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
{% if version >= version_latest %}
<i class="fa fa-check-circle"></i> {{ version }}
{% else %}
<i class="fa fa-exclamation-triangle"></i> {{ version }}
{% endif %}
</p>
2020-06-30 09:23:39 +01:00
{% if version >= version_latest %}
2020-07-07 12:13:15 +01:00
{% blocktrans %}
Up-to-date!
2020-06-30 09:23:39 +01:00
{% endblocktrans %}
{% else %}
2020-07-07 12:13:15 +01:00
{% blocktrans with latest=version_latest %}
{{ latest }} is available!
2020-06-30 09:23:39 +01:00
{% endblocktrans %}
{% endif %}
</div>
</div>
2020-07-07 12:13:15 +01:00
<div class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-server"></i> {% trans 'Workers' %}
</div>
</div>
<div class="pf-c-card__body">
{% if worker_count < 1 %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-exclamation-triangle"></i> {{ worker_count }}
</p>
<p>{% trans 'No workers connected.' %}</p>
{% else %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ worker_count }}
</p>
{% endif %}
</div>
</div>
2020-07-07 12:13:15 +01:00
<a class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact" data-target="modal" data-modal="clearCacheModalRoot">
2020-06-09 12:39:44 +01:00
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-server"></i> {% trans 'Cached Policies' %}
</div>
</div>
<div class="pf-c-card__body">
{% if cached_policies < 1 %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-exclamation-triangle"></i> {{ cached_policies }}
</p>
<p>{% trans 'No policies cached. Users may experience slow response times.' %}</p>
{% else %}
2020-07-07 12:13:15 +01:00
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ cached_policies }}
</p>
{% endif %}
</div>
</a>
2020-07-07 12:13:15 +01:00
<div class="pf-c-card pf-c-card-aggregate pf-m-hoverable pf-m-compact">
<div class="pf-c-card__header">
<div class="pf-c-card__header-main">
<i class="pf-icon pf-icon-server"></i> {% trans 'Cached Flows' %}
</div>
</div>
<div class="pf-c-card__body">
{% if cached_flows < 1 %}
<p class="aggregate-status">
<span class="fa fa-exclamation-triangle"></span> {{ cached_flows }}
</p>
<p>{% trans 'No flows cached.' %}</p>
{% else %}
<p class="aggregate-status">
<i class="fa fa-check-circle"></i> {{ cached_flows }}
</p>
{% endif %}
</div>
</div>
</section>
</div>
<div class="pf-c-backdrop" id="clearCacheModalRoot" hidden>
<div class="pf-l-bullseye">
<div class="pf-c-modal-box pf-m-sm" role="dialog">
<button data-modal-close class="pf-c-button pf-m-plain" type="button" aria-label="Close dialog">
<i class="fas fa-times" aria-hidden="true"></i>
</button>
2020-07-06 19:50:14 +01:00
<div class="pf-c-modal-box__header">
<h1 class="pf-c-title pf-m-2xl" id="modal-title">{% trans 'Clear Cache' %}?</h1>
</div>
<div class="pf-c-modal-box__body" id="modal-description">
<form method="post" id="clearForm">
{% csrf_token %}
<input type="hidden" name="clear">
<p>
{% blocktrans %}
Are you sure you want to clear the cache? This includes all user sessions and all cached Policy results.
{% endblocktrans %}
</p>
<h3>
{% blocktrans %}
This will also log you out.
{% endblocktrans %}
</h3>
</form>
</div>
<footer class="pf-c-modal-box__footer pf-m-align-left">
<button form="clearForm" class="pf-c-button pf-m-primary" type="submit">{% trans 'Clear' %}</button>
<button data-modal-close class="pf-c-button pf-m-link" type="button">{% trans 'Cancel' %}</button>
</footer>
</div>
</div>
2018-11-11 12:41:48 +00:00
</div>
2019-02-16 09:24:31 +00:00
{% endblock %}