only show expiring accounts if any exist

This commit is contained in:
Karl Hudgell 2024-11-03 15:35:01 +00:00
parent ccf563afb5
commit f97e04df55

View File

@ -30,12 +30,14 @@
</div> </div>
</nav> </nav>
<!-- Main Content --> <!-- Main Content -->
<div class="container mt-5"> <div class="container mt-5">
<h1>Welcome {{ username }}!</h1> <h1>Welcome {{ username }}!</h1>
<br> <br>
<h2>You have {{accounts|length}} active accounts</h2> <h2>You have {{ accounts|length }} active accounts</h2>
<br> <br>
{% if current_month_accounts %}
<h3>Accounts Expiring This Month</h3> <h3>Accounts Expiring This Month</h3>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead class="thead-dark"> <thead class="thead-dark">
@ -55,7 +57,9 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div> {% endif %}
</div>
<footer class="bg-dark text-white text-center py-3 mt-5"> <footer class="bg-dark text-white text-center py-3 mt-5">
<p>&copy; 2024 KTV Manager | All rights reserved</p> <p>&copy; 2024 KTV Manager | All rights reserved</p>