{% extends 'layouts/two_pane.html' %} {% load i18n %} {% load bulma_tags %} {% load url_filter %} {% block content_main %}

{% trans 'Site detail' %}: {{ site.title|default:'' }}

{% if site.created_by == request.user %}
Disable {% if yagura_conf.ENABLE_DELETING_SITES %} Delete {% endif%}
{% endif %}

Overview

{# TODO: Refactor struct of site information #}
{% trans 'Site URL' %}: {{ site.url|guard_basic_auth }}
{% trans 'Site name' %}: {{ site.title|default:'' }} Edit
{% trans 'Excepted HTTP status code' %}: {{ site.ok_http_status }}
Email notifications: Show Add
Slack notifications: Show Add

History

{% for history in site.states.all reversed %} {% endfor %}
{% trans 'State' %}{% trans 'Range' %}{% trans 'Reason' %}
{{ history.state }} {{ history.begin_at }} - {{ history.updated_at }} {% if forloop.first %}(now){% endif %} {{ history.reason }}
{% endblock %}