Add non-free warning

This commit is contained in:
rubenwardy
2018-05-29 21:24:50 +01:00
parent fa2f17526f
commit 1600687449
6 changed files with 77 additions and 9 deletions

View File

@@ -8,6 +8,21 @@
<p>
{{ package.shortDesc }}
</p>
{% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}
<p style="color:#f33;">
<b>Warning:</b> Non-free code and media.
</p>
{% elif not package.license.is_foss and package.type != package.type.TXP %}
<p style="color:#f33;">
<b>Warning:</b> Non-free code.
</p>
{% elif not package.media_license.is_foss %}
<p style="color:#f33;">
<b>Warning:</b> Non-free media.
</p>
{% endif %}
</div>
</a></li>
{% endmacro %}