aboutsummaryrefslogtreecommitdiff
path: root/app/templates/macros
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-19 15:46:29 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-19 15:46:29 +0000
commitd503908a652fdbd1453f59d5a106b4da8c46055b (patch)
tree3457550208765bb1693cee3ebd3e7fb8f66ed1b3 /app/templates/macros
parent215839c4234ab65807020b42eb67a76cfa6e8767 (diff)
downloadcheatdb-d503908a652fdbd1453f59d5a106b4da8c46055b.tar.xz
Add populated homepage test
Diffstat (limited to 'app/templates/macros')
-rw-r--r--app/templates/macros/packagegridtile.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/templates/macros/packagegridtile.html b/app/templates/macros/packagegridtile.html
index 9f70c1c..3fb39a8 100644
--- a/app/templates/macros/packagegridtile.html
+++ b/app/templates/macros/packagegridtile.html
@@ -40,8 +40,10 @@
{% else %}
<li><i>No packages available</i></ul>
{% endfor %}
- {% for i in range(4) %}
- <li class="packagetile flex-fill"></li>
- {% endfor %}
+ {% if packages %}
+ {% for i in range(4) %}
+ <li class="packagetile flex-fill"></li>
+ {% endfor %}
+ {% endif %}
</ul>
{% endmacro %}