Add review status to editor listing

This commit is contained in:
Tim Van Baak 2020-04-11 20:34:10 -07:00
parent 751b0cf485
commit 3832a18d63
1 changed files with 10 additions and 3 deletions

View File

@ -53,9 +53,16 @@
{% for article in articles %} {% for article in articles %}
{% if article.character == char.cid %} {% if article.character == char.cid %}
<li> <li>
<a href="{{ url_for('lexicon.editor', name=g.lexicon.name, cid=char.cid, aid=article.aid) }}"> <a href="{{ url_for('lexicon.editor', name=g.lexicon.name, cid=char.cid, aid=article.aid) }}">{{ article.title if article.title.strip() else "Untitled" }}</a>
{{ article.title if article.title.strip() else "Untitled" }} <span>
</a> {% if not article.status.ready %}
[Draft]
{% elif not article.status.approved %}
[Pending]
{% else %}
[Approved]
{% endif %}
</span>
</li> </li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}