diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-01-19 15:46:29 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-01-19 15:46:29 +0000 |
| commit | d503908a652fdbd1453f59d5a106b4da8c46055b (patch) | |
| tree | 3457550208765bb1693cee3ebd3e7fb8f66ed1b3 /app/templates/macros/packagegridtile.html | |
| parent | 215839c4234ab65807020b42eb67a76cfa6e8767 (diff) | |
| download | cheatdb-d503908a652fdbd1453f59d5a106b4da8c46055b.tar.xz | |
Add populated homepage test
Diffstat (limited to 'app/templates/macros/packagegridtile.html')
| -rw-r--r-- | app/templates/macros/packagegridtile.html | 8 |
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 %} |
