46 lines
1.7 KiB
HTML
46 lines
1.7 KiB
HTML
{% extends "wcs/backoffice/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block appbar-title %}{{ error.summary }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="section">
|
|
<ul>
|
|
<li>{% trans "First occurence:" %} {{ error.first_occurence_timestamp }}</li>
|
|
<li>{% trans "Latest occurence:" %} {{ error.latest_occurence_timestamp }}</li>
|
|
<li>{% trans "Count:" %} {{ error.occurences_count }}</li>
|
|
{% if formdef %}
|
|
<li>{{ formdef.verbose_name }}{% trans ":" %} <a href="{{ formdef.get_admin_url }}">{{ formdef.name }}</a></li>
|
|
{% endif %}
|
|
{% if workflow %}
|
|
<li>{% trans "Workflow:" %} <a href="{{ workflow.get_admin_url }}">{{ workflow.name }}</a>
|
|
{% if status %}
|
|
<ul>
|
|
<li>{% trans "Status:" %} <a href="{{ workflow.get_admin_url }}status/{{ status.id }}/">{{ status.name }}</a></li>
|
|
{% if status_item %}
|
|
<li>{% trans "Action:" %} <a href="{{ workflow.get_admin_url }}status/{{ status.id }}/items/{{ status_item.id }}/">{% trans status_item.description %}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
{% if error.expression or error.expression_type %}
|
|
<li>{{ view.error_expression_type_label }}{% trans ":" %} <code>{{ error.expression }}</code></li>
|
|
{% endif %}
|
|
{% if error.exception_class or error.exception_message %}
|
|
<li>{% trans "Error message:" %} <code>{{ error.exception_class }}: {{ error.exception_message }}</code></li>
|
|
{% endif %}
|
|
{% if formdata %}
|
|
<li>{% trans "Data:" %} <a href="{{ formdata.get_backoffice_url }}">{{ formdata.get_display_name }}</a>
|
|
(<a href="{{ formdata.get_backoffice_url }}inspect">{% trans "inspector" %}</a>)</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
|
|
{% if error.traceback %}
|
|
{{ view.get_html_traceback|safe }}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|