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

{% trans 'Site detail' %}

{% if site.created_by == request.user %} {% url 'sites:delete' site.id as url_to_sites_delete %} {% bootstrap_button 'Delete' 'link' href=url_to_sites_delete %} {% endif %}

Target: {{ site.url }}

{% if site.created_by == request.user %}

Menu: {% url 'notifications:list-recipient' site.id as url_to_list_notifications %} {% bootstrap_button 'Show notifications' 'button' href=url_to_list_notifications size='xs' %} {% url 'notifications:add-recipient' site.id as url_to_add_notification %} {% bootstrap_button 'Add notification' 'button' href=url_to_add_notification size='xs' %}

{% endif %}

History

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