From 4049534fde7f19e9800c9f47d6c7d53ce4d3e1b4 Mon Sep 17 00:00:00 2001 From: Colby Date: Sun, 13 Oct 2024 21:28:51 +0100 Subject: [PATCH] Improved modapp quite a bit including pagination. --- templates/modapp.html | 134 ++++++++++++++++++++---------------------- 1 file changed, 65 insertions(+), 69 deletions(-) diff --git a/templates/modapp.html b/templates/modapp.html index ee50523..6820392 100644 --- a/templates/modapp.html +++ b/templates/modapp.html @@ -7,6 +7,7 @@ +
@@ -27,7 +28,6 @@ Random / Submit / Browse / - Top 100 / Modapp @@ -36,73 +36,72 @@
-
+

All Quotes for Moderation

+ + + + + + + + + {% if quotes.items %} + +
- + + + + + + + + + {% for quote in quotes.items %} + + + + + + + + + {% endfor %}
-

All Quotes for Moderation

- - - {% if all_quotes %} -
- - - - - - - - - - - - - {% for quote in all_quotes %} - - - - - - - - - - - {% endfor %} -
SelectQuote IDQuoteStatusSubmitted AtIP AddressUser AgentActions
#{{ quote.id }}{{ quote.text }} - {% if quote.status == 0 %} - Pending - {% elif quote.status == 1 %} - Approved - {% else %} - Rejected - {% endif %} - - {% if quote.submitted_at %} - {{ quote.submitted_at.strftime('%Y-%m-%d %H:%M:%S') }} - {% else %} - N/A - {% endif %} - {{ quote.ip_address }}{{ quote.user_agent }} - Approve | - Reject | - Delete -
- - - - -
+
Quote IDQuoteStatusSubmitted AtIP AddressUser AgentActions
#{{ quote.id }}{{ quote.text }} + {% if quote.status == 0 %} + Pending + {% elif quote.status == 1 %} + Approved {% else %} -

No quotes available for moderation at the moment.

+ Rejected {% endif %}
{{ quote.submitted_at.strftime('%Y-%m-%d %H:%M:%S') if quote.submitted_at else 'N/A' }}{{ quote.ip_address }}{{ quote.user_agent }} + Approve | + Reject | + Delete +
+ + + + + {% else %} +

No quotes available for moderation.

+ {% endif %}
@@ -118,15 +117,12 @@   - {{ total_quotes }} quotes approved + + {{ approved_count }} quotes approved; {{ pending_count }} quotes pending; {{ rejected_count }} quotes rejected + - -
- -
- - \ No newline at end of file +