{% extends "base.html" %} {% import "_side.html" as side with context %} {% import "_run_form.html" as run with context %} {% block title %}{% if view %}{{ view.title }} · {% endif %}Ask · pepa{% endblock %} {% block content %} {% include "_page_head.html" %} {% if request.args.started in ["develop/outline", "develop/check"] %}{% endif %} {% if view and view.kind == "check" %} {% set papers_shown = view.parts | map(attribute="papers") | sum(start=[]) %} {% elif view %} {% set papers_shown = view.papers %} {% else %} {% set papers_shown = [] %} {% endif %}
{% include "_shown_run.html" %} {% if view and view.kind == "check" %}
{% for part in view.parts %}

{{ part.heading }}

{% with shown = part.shown %}{% include "_shown_run.html" %}{% endwith %} {% if part.html %}
{{ part.html | safe }}
{% elif not part.shown %}

Not written. The run may have stopped; see Jobs for its log.

{% endif %} {% endfor %}
{% elif view %}
{{ view.html | safe }}
{% endif %}
{% if view %} {% if papers_shown %} {% with collect_ticked = False, stems = papers_shown | map(attribute="stem") | list %}{% include "_add_to_list.html" %}{% endwith %} {% endif %} {% endif %}
{% endblock %}