2018-11-11 12:41:48 +00:00
{% extends "administration/base.html" %}
{% load i18n %}
{% block content %}
2018-11-26 21:09:04 +00:00
< div class = "container" >
2019-02-21 15:06:57 +00:00
< 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" >
2019-02-25 16:11:52 +00:00
< a href = "{% url 'passbook_admin:applications' %}" >
< span class = "pficon-applications" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Applications' %}
< / a >
2019-02-21 15:06:57 +00:00
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
2019-02-25 16:11:52 +00:00
< span class = "card-pf-aggregate-status-notification" >
< a href = "{% url 'passbook_admin:applications' %}" >
< span class = "pficon pficon-ok" > < / span > {{ application_count }}
< / a >
< / span >
2019-02-21 15:06:57 +00:00
< / p >
< / div >
< / div >
2018-11-11 12:41:48 +00:00
< / div >
2019-02-21 15:06:57 +00:00
< 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" >
2019-02-25 16:11:52 +00:00
< a href = "{% url 'passbook_admin:sources' %}" >
< span class = "pficon-resource-pool" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Sources' %}
< / a >
2019-02-21 15:06:57 +00:00
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
2019-02-25 16:11:52 +00:00
< span class = "card-pf-aggregate-status-notification" >
< a href = "{% url 'passbook_admin:sources' %}" >
< span class = "pficon pficon-ok" > < / span > {{ source_count }}
< / a >
< / span >
2019-02-21 15:06:57 +00:00
< / p >
< / div >
< / div >
2018-11-16 10:40:24 +00:00
< / div >
2019-02-21 15:06:57 +00:00
< 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" >
2019-02-25 16:11:52 +00:00
< a href = "{% url 'passbook_admin:providers' %}" >
< span class = "pficon-integration" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Providers' %}
< / a >
2019-02-21 15:06:57 +00:00
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
2019-02-25 16:11:52 +00:00
< span class = "card-pf-aggregate-status-notification" >
< a href = "{% url 'passbook_admin:providers' %}" >
2019-02-27 14:45:42 +00:00
{% 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 %}
2019-02-25 16:11:52 +00:00
< / a >
< / span >
2019-02-21 15:06:57 +00:00
< / p >
< / div >
< / div >
2018-11-11 12:41:48 +00:00
< / div >
2019-02-21 15:06:57 +00:00
< 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" >
2019-02-25 16:11:52 +00:00
< a href = "{% url 'passbook_admin:factors' %}" >
< span class = "pficon-plugged" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Factors' %}
< / a >
2019-02-21 15:06:57 +00:00
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
2019-02-25 16:11:52 +00:00
< span class = "card-pf-aggregate-status-notification" >
2019-03-02 22:54:40 +00:00
{% 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 %}
2019-03-03 16:12:35 +00:00
< span class = "pficon pficon-ok" > < / span > {{ factor_count }}
2019-03-02 22:54:40 +00:00
{% endif %}
2019-02-25 16:11:52 +00:00
< / span >
2019-02-21 15:06:57 +00:00
< / 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" >
2019-02-25 16:11:52 +00:00
< a href = "{% url 'passbook_admin:policies' %}" >
< span class = "pficon-infrastructure" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Policies' %}
< / a >
2019-02-21 15:06:57 +00:00
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
2019-02-25 16:11:52 +00:00
< span class = "card-pf-aggregate-status-notification" >
2019-03-03 16:12:35 +00:00
{% 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 %}
2019-02-25 16:11:52 +00:00
< / span >
2019-02-21 15:06:57 +00:00
< / 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" >
2019-02-25 16:11:52 +00:00
< a href = "{% url 'passbook_admin:invitations' %}" >
< span class = "pficon-migration" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Invitation' %}
< / a >
2019-02-21 15:06:57 +00:00
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
2019-02-25 16:11:52 +00:00
< span class = "card-pf-aggregate-status-notification" >
< a href = "{% url 'passbook_admin:invitations' %}" >
< span class = "pficon pficon-ok" > < / span > {{ invitation_count }}
< / a >
< / span >
2019-02-21 15:06:57 +00:00
< / 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" >
2019-02-25 16:11:52 +00:00
< a href = "{% url 'passbook_admin:users' %}" >
< span class = "pficon-users" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Users' %}
< / a >
2019-02-21 15:06:57 +00:00
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
2019-02-25 16:11:52 +00:00
< span class = "card-pf-aggregate-status-notification" >
< a href = "{% url 'passbook_admin:users' %}" >
< span class = "pficon pficon-ok" > < / span > {{ user_count }}
< / a >
< / span >
2019-02-21 15:06:57 +00:00
< / p >
< / div >
< / div >
2018-11-11 12:41:48 +00:00
< / div >
2019-02-25 16:52:51 +00:00
< 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" >
2019-04-29 18:37:44 +00:00
< span class = "pficon-bundle" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Version' %}
2019-02-25 16:52:51 +00:00
< / 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 = "#" >
2019-02-27 14:45:42 +00:00
{% if worker_count < 1 % }
< span class = "pficon-error-circle-o" data-toggle = "tooltip" data-placement = "right"
2019-03-02 21:41:25 +00:00
title="{% trans 'No workers connected. Policies will not work and you may expect other issues.' %}">< / span > {{ worker_count }}
2019-02-27 14:45:42 +00:00
{% else %}
2019-02-25 16:52:51 +00:00
< span class = "pficon pficon-ok" > < / span > {{ worker_count }}
2019-02-27 14:45:42 +00:00
{% endif %}
2019-02-25 16:52:51 +00:00
< / a >
< / span >
< / p >
< / div >
< / div >
< / div >
2019-04-29 18:37:44 +00:00
< 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" >
< span class = "pficon-server" > < / span >
< span class = "card-pf-aggregate-status-count" > < / span > {% trans 'Cached Policies' %}
< / h2 >
< div class = "card-pf-body" >
< p class = "card-pf-aggregate-status-notifications" >
< span class = "card-pf-aggregate-status-notification" >
< a href = "#" data-toggle = "modal" data-target = "#clearCacheMOdal" >
{% if cached_policies < 1 % }
< span class = "pficon-warning-triangle-o" data-toggle = "tooltip" data-placement = "right"
title="{% trans 'No policies cached. Users may experience slow response times.' %}">< / span > {{ cached_policies }}
{% else %}
< span class = "pficon pficon-ok" > < / span > {{ cached_policies }}
{% endif %}
< / a >
< / span >
< / p >
< / div >
< / div >
< / div >
< / div >
< div class = "modal fade" id = "clearCacheMOdal" tabindex = "-1" role = "dialog" aria-labelledby = "clearCacheMOdalLabel" aria-hidden = "true" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" >
< span class = "pficon pficon-close" > < / span >
< / button >
< h4 class = "modal-title" id = "clearCacheMOdalLabel" > {% trans 'Clear Cache' %}< / h4 >
< / div >
< div class = "modal-body" >
< 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 >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Cancel< / button >
< button form = "clearForm" type = "submit" type = "button" class = "btn btn-danger" > {% trans 'Clear' %}< / button >
< / div >
< / div >
< / div >
2018-11-11 12:41:48 +00:00
< / div >
2019-02-16 09:24:31 +00:00
{% endblock %}