Commit 5f8c1d10 authored by luxcem's avatar luxcem

rejected article view

parent 08485b86
......@@ -37,6 +37,12 @@
</div>
{% endif %}
{% if filter_view == "rejected" %}
<div class="alert alert-danger" role="alert">
{% trans "Rejected articles" %}
</div>
{% endif %}
<table class="article-table table table-sm my-4">
<thead>
<tr>
......
......@@ -13,6 +13,8 @@ class ArticleListFlux(UDList):
qs = Article.objects.filter(status="PUBLISHED")
elif filter_view == "draft":
qs = Article.objects.filter(und_score__gte=3, status="PENDING")
elif filter_view == "rejected":
qs = Article.objects.filter(status="REJECTED")
else:
qs = Article.objects.filter(status="PENDING")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment