1 {% macro render_pkgtile(package) -%}
2 <li><a href="{{ package.getDetailsURL() }}"
3 style="background-image: url({{ package.getThumbnailURL() or '/static/placeholder.png' }});">
4 <div class="packagegridscrub"></div>
5 <div class="packagegridinfo">
6 <h3>{{ package.title }} by {{ package.author.display_name }}</h3>
9 {{ package.shortDesc }}
13 {% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}
14 <p style="color:#f33;">
15 <b>Warning:</b> Non-free code and media.
17 {% elif not package.license.is_foss and package.type != package.type.TXP %}
18 <p style="color:#f33;">
19 <b>Warning:</b> Non-free code.
21 {% elif not package.media_license.is_foss %}
22 <p style="color:#f33;">
23 <b>Warning:</b> Non-free media.
30 {% macro render_pkggrid(packages) -%}
31 <ul class="packagegrid">
32 {% for p in packages %}
33 {{ render_pkgtile(p) }}
35 <li><i>No packages available</i></ul>