diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 71168ca..633aa88 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -131,42 +131,52 @@
-
- Your Facilities +
+ Your Facilities + {% if customer_facilities %} + {{ customer_facilities|length }} + {% endif %}
{% if customer_facilities %} -
-
- - - - - - - - - - - {% for f in customer_facilities %} - - - - - - - {% endfor %} - -
FacilityAddressContract
{{ f.name }}{{ f.address or '—' }}{{ f.project.name if f.project else '—' }} - - View - - - Report - -
+
+ {% if customer_facilities|length > 6 %} +
+
+ {% endif %} +
+ {% for f in customer_facilities %} +
+
+
{{ f.name }}
+
{{ f.address or '—' }}
+
+ + {{ f.project.name if f.project else '—' }} + +
+ +
+
+ {% endfor %} +
+ {% if customer_facilities|length > 9 %} +
+ +
+ {% endif %}
{% else %}
@@ -177,6 +187,41 @@
+ +{% if current_user.role == 'customer' and customer_facilities and customer_facilities|length > 9 %} + +{% endif %} {% endif %} {# ── System quick stats (admin/director) ─────────────────────────────────── #}