fix(FastAPI): use elif statements where appropriate

Signed-off-by: Steven Guikal <void@fluix.one>
This commit is contained in:
Steven Guikal 2021-10-18 15:07:25 -04:00
parent 927f5e8567
commit db67e83bb8
3 changed files with 16 additions and 23 deletions

View file

@ -82,8 +82,7 @@
</form>
{% endif %}
{% endif %}
{% else %}
{% if request.user.has_credential("CRED_COMMENT_UNDELETE", approved=[comment.User]) %}
{% elif request.user.has_credential("CRED_COMMENT_UNDELETE", approved=[comment.User]) %}
<form class="undelete-comment-form"
method="post"
action="/pkgbase/{{ pkgbase.Name }}/comments/{{ comment.ID }}/undelete"
@ -97,7 +96,6 @@
name="submit" value="1" width="11" height="11" />
</fieldset>
</form>
{% endif %}
{% endif %}
</h4>
<div id="comment-{{ comment.ID }}-content" class="{{ article_cls }}">