Jun 27 MT-5

This commit is contained in:
2026-06-27 12:56:11 -04:00
parent 668cb645e2
commit 7505e82ab4
6 changed files with 344 additions and 10 deletions
+18
View File
@@ -0,0 +1,18 @@
{# _quota_warning.html
Include at the top of any template whose route uses @quota_soft_check.
Renders nothing when g.quota_warning is absent or limit not exceeded.
#}
{% if g.quota_warning and g.quota_warning.exceeded %}
<div class="alert alert-warning alert-dismissible fade show d-flex align-items-center gap-2 mb-3" role="alert">
<i class="bi bi-exclamation-triangle-fill fs-5 flex-shrink-0"></i>
<div>
<strong>Usage limit reached.</strong>
You've used {{ g.quota_warning.current }} of {{ g.quota_warning.limit }}
{{ g.quota_warning.axis }} allowed on your current plan this month.
Your submission was saved, but consider
<a href="mailto:support@jqc.app" class="alert-link">upgrading your plan</a>
for higher limits.
</div>
<button type="button" class="btn-close ms-auto" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endif %}