aboutsummaryrefslogtreecommitdiff
path: root/app/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/index.html')
-rw-r--r--app/templates/index.html19
1 files changed, 2 insertions, 17 deletions
diff --git a/app/templates/index.html b/app/templates/index.html
index 62bdb94..4887b31 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -24,22 +24,7 @@ Dashboard
</header>
<main>
- <ul class="packagegrid">
- {% for p in packages %}
- <li><a href="{{ p.getDetailsURL() }}"
- style="background-image: url({{ p.getMainScreenshotURL() or '/static/placeholder.png' }});">
- <div class="packagegridscrub"></div>
- <div class="packagegridinfo">
- <h3>{{ p.title }} by {{ p.author.display_name }}</h3>
-
- <p>
- {{ p.shortDesc }}
- </p>
- </div>
- </a></li>
- {% else %}
- <li><i>No packages available</i></ul>
- {% endfor %}
- </ul>
+ {% from "macros/packagegridtile.html" import render_pkggrid %}
+ {{ render_pkggrid(packages) }}
</main>
{% endblock %}