mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-24 15:02:25 +01:00
24 lines
611 B
HTML
24 lines
611 B
HTML
|
{% macro render_pkgtile(package) -%}
|
||
|
<li><a href="{{ package.getDetailsURL() }}"
|
||
|
style="background-image: url({{ package.getMainScreenshotURL() or '/static/placeholder.png' }});">
|
||
|
<div class="packagegridscrub"></div>
|
||
|
<div class="packagegridinfo">
|
||
|
<h3>{{ package.title }} by {{ package.author.display_name }}</h3>
|
||
|
|
||
|
<p>
|
||
|
{{ package.shortDesc }}
|
||
|
</p>
|
||
|
</div>
|
||
|
</a></li>
|
||
|
{% endmacro %}
|
||
|
|
||
|
{% macro render_pkggrid(packages) -%}
|
||
|
<ul class="packagegrid">
|
||
|
{% for p in packages %}
|
||
|
{{ render_pkgtile(p) }}
|
||
|
{% else %}
|
||
|
<li><i>No packages available</i></ul>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endmacro %}
|