{% load roles %} {% user_has_role request 'production' as prod_manager %}

{{ article.pk }} - {{ article.safe_title }}

{% if type == "assignment" %}

Awaiting production manager assignment.

{% elif type == "assigned" %}

Production in progress.

{% endif %} {% if article.projected_issue %}

Projected Issue: {{ article.projected_issue.display_title }}

{% endif %} {% if request.user in article.editor_list or request.user in article.section_editors or prod_manager or request.user.is_staff %}
{% if type == "assignment" %} Assign production manager {% if prod_manager %}Assign self{% endif %} {% elif type == 'assigned' %} Unassign {% if user_is_editor or prod_manager or request.user in article.section_editors %} Go to production page{% endif %} {% endif %}
{% else %}

You are not an editor for this article.

{% endif %}
{% include "elements/avatar.html" with user=article.correspondence_author role="Author" %} {% if article.production_assignment_or_none and article.productionassignment.production_manager %} {% include "elements/avatar.html" with user=article.productionassignment.production_manager role="PM" %} {% endif %} {% if article.production_assignment_or_none %} {% for task in article.productionassignment.typeset_tasks %} {% include "elements/avatar.html" with user=task.typesetter role="TS" %} {% endfor %} {% endif %}