{% macro render_pkgtile(package, show_author) -%}
  • {{ package.title }} {% if show_author %} by {{ package.author.display_name }} {% endif %}

    {{ package.shortDesc }}

    {% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}

    Warning: Non-free code and media.

    {% elif not package.license.is_foss and package.type != package.type.TXP %}

    Warning: Non-free code.

    {% elif not package.media_license.is_foss %}

    Warning: Non-free media.

    {% endif %}
  • {% endmacro %} {% macro render_pkggrid(packages, show_author=True) -%} {% endfor %} {% set amt=packages|length %} {% if amt > 4 %} {% set amt=4 %} {% endif %} {% for i in range(amt) %}
  • {% endfor %} {% endmacro %}