Skip to content

Commit

Permalink
Updated article jump with structure based on workflow logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Feb 7, 2018
1 parent da2080d commit 06ba8c6
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/templates/admin/elements/article_jump.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<button class="tiny secondary button float-right dropdown" data-toggle="articledropdown">Article Jump</button>
<div class="dropdown-pane bottom small" id="articledropdown" data-dropdown>
<ul>
<li><a href="{% url 'review_in_review' article.pk %}">Review</a></li>
<li><a href="{% url 'article_copyediting' article.pk %}">Editing</a></li>
{% if article.stage == 'Proofing' or article.stage == 'pre_publication' or article.stage == 'Typesetting' %}
<li><a href="{% url 'production_article' article.pk %}">Production</a></li>{% endif %}
{% if article.stage == 'Proofing' or article.stage == 'pre_publication' %}
<li><a href="{% url 'proofing_article' article.pk %}">Proofing</a></li>{% endif %}
{% if article.stage == 'pre_publication' %}
<li><a href="{% url 'publish_article' article.pk %}">Pre Publication</a></li>{% endif %}
{% for stage in article.workflow_stages %}
<li>{% if stage.element.article_url %}
<a href="{% url stage.element.handshake_url article.pk %}">{{ stage.element.element_name|capfirst }}</a>
{% else %}
<a href="{% url stage.element.handshake_url %}">{{ stage.element.element_name|capfirst }}</a>
{% endif %}</li>
{% endfor %}
<li><a href="{% url 'manage_article_log' article.pk %}">Log</a></li>
{% if article.is_published %}
<li><a href="{{ article.url }}">Live Article</a></li>{% endif %}
{% if request.user.is_superuser %}<li><a target="_blank" href="/admin/submission/article/{{ article.pk }}/">Admin <i class="fa fa-external-link"></i></a></li>{% endif %}
{% if request.user.is_superuser %}
<li><a target="_blank" href="/admin/submission/article/{{ article.pk }}/">Admin <i
class="fa fa-external-link"></i></a></li>
{% endif %}
</ul>
</div>

0 comments on commit 06ba8c6

Please sign in to comment.