<aside class="asideright box box_grey">
<h3>Details</h3>
+
<div class="box-body">
+ {% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}
+ <div class="box box_grey alert alert-error" style="margin-top: 0;">
+ <b>Warning:</b> Non-free code and media.
+ </div>
+ {% elif not package.license.is_foss and package.type != package.type.TXP %}
+ <div class="box box_grey alert alert-error" style="margin-top: 0;">
+ <b>Warning:</b> Non-free code.
+ </div>
+ {% elif not package.media_license.is_foss %}
+ <div class="box box_grey alert alert-error" style="margin-top: 0;">
+ <b>Warning:</b> Non-free media.
+ </div>
+ {% endif %}
<table>
<tr>
<td>Name</td>
</tr>
<tr>
<td>License</td>
- <td>{{ package.license.name }}</td>
+ <td>
+ {% if package.license == package.media_license %}
+ {{ package.license.name }}
+ {% elif package.type == package.type.TXP %}
+ {{ package.media_license.name }}
+ {% else %}
+ {{ package.license.name }} for code,<br />
+ {{ package.media_license.name }} for media.
+ {% endif %}
+ </td>
</tr>
<tr>
<td>Added</td>
</table>
<ul class="buttonset linedbuttonset">
- {% if package.getDownloadRelease() %}<li><a href="{{ package.getDownloadURL() }}">Download</a></li>{% endif %}
+ {% if package.getDownloadRelease() %}<li><a href="{{ package.getDownloadURL() }}" class="btn_green">Download</a></li>{% endif %}
{% if package.repo %}<li><a href="{{ package.repo }}">View Source</a></li>{% endif %}
{% if package.forums %}<li><a href="https://forum.minetest.net/viewtopic.php?t={{ package.forums }}">Forums</a></li>{% endif %}
{% if package.issueTracker %}<li><a href="{{ package.issueTracker }}">Issue Tracker</a></li>{% endif %}
<li><a href="{{ package.getEditURL() }}">Edit</a></li>
<li><a href="{{ package.getNewScreenshotURL() }}">Add screenshot</a></li>
{% endif %}
- {% if current_user.is_authenticated %}
+ {# {% if current_user.is_authenticated %}
<li><a href="{{ package.getCreateEditRequestURL() }}">Suggest Changes</a></li>
- {% endif %}
+ {% endif %} #}
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
<li><a href="{{ package.getCreateReleaseURL() }}">Create Release</a></li>
{% endif %}
</tr>
</table> -->
- {% if current_user.is_authenticated or requests %}
- <h3>Edit Requests</h3>
-
- <ul>
- {% for r in requests %}
- <li>
- <a href="{{ r.getURL() }}">{{ r.title }}</a>
- by
- <a href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a>
- </li>
- {% else %}
- <li>No edit requests have been made.</li>
- {% endfor %}
- </ul>
- {% endif %}
+ {#
+ {% if current_user.is_authenticated or requests %}
+ <h3>Edit Requests</h3>
+
+ <ul>
+ {% for r in requests %}
+ <li>
+ <a href="{{ r.getURL() }}">{{ r.title }}</a>
+ by
+ <a href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a>
+ </li>
+ {% else %}
+ <li>No edit requests have been made.</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ #}
{% endblock %}