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 %}
{% if article.character == char.cid %}
<li>
<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>
<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>
<span>
{% if not article.status.ready %}
[Draft]
{% elif not article.status.approved %}
[Pending]
{% else %}
[Approved]
{% endif %}
</span>
</li>
{% endif %}
{% endfor %}