{% extends "simple_app.html" %} {% comment %} # # This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # {% endcomment %} {% load bootstrap %} {% load i18n %} {% block page_head %} {% endblock %} {% block configuration %}

{% trans "Status" %}

{% if status.domains %} {% for domain, domain_status in status.domains.items %} {% endfor %}
{% trans "Domain" %} {% trans "Certificate Status" %} {% trans "Website Security" %} {% trans "Actions" %}
{{ domain }} {% if domain_status.certificate_available and domain_status.validity == "valid" %} {% blocktrans trimmed with expiry_date=domain_status.expiry_date %} Valid, expires on {{ expiry_date }} {% endblocktrans %} {% elif domain_status.certificate_available and not domain_status.validity == "valid" %} {% if "revoked" in domain_status.validity %} {% blocktrans trimmed %} Revoked {% endblocktrans %} {% elif "expired" in domain_status.validity %} {% blocktrans trimmed with expiry_date=domain_status.expiry_date %} Expired on {{ expiry_date }} {% endblocktrans %} {% elif "test" in domain_status.validity %} {% blocktrans trimmed %} Invalid test certificate {% endblocktrans %} {% else %} {% blocktrans trimmed with reason=domain_status.validity %} Invalid ({{ reason }}) {% endblocktrans %} {% endif %} {% else %} {% trans "No certificate" %} {% endif %} {% if domain_status.web_enabled %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %} {% if domain_status.certificate_available %}
{% csrf_token %}
{% csrf_token %}
{% if "revoked" not in domain_status.validity %}
{% csrf_token %}
{% endif %} {% else %}
{% csrf_token %}
{% endif %}
{% include "diagnostics_button.html" with module="letsencrypt" enabled=True %} {% else %} {% url 'config:index' as config_url %} {% blocktrans trimmed %} No domains have been configured. Configure domains to be able to obtain certificates for them. {% endblocktrans %} {% endif %} {% endblock %}