Add suggest changes button

This commit is contained in:
rubenwardy 2018-03-20 03:24:52 +00:00
parent 775850bbba
commit dad980c3bf

@ -20,11 +20,15 @@
</table>
<ul class="buttonset linedbuttonset">
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %}<li><a href="{{ package.getEditURL() }}">Edit</a></li>{% endif %}
{% if package.repo %}<li><a href="{{ package.repo }}">View Source</a></li>{% endif %}
{% if package.forums %}<li><a href="{{ package.forums }}">Forums</a></li>{% endif %}
{% if package.issueTracker %}<li><a href="{{ package.issueTracker }}">Issue Tracker</a></li>{% endif %}
{% if package.website %}<li><a href="{{ package.website }}">Website</a></li>{% endif %}
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
<li><a href="{{ package.getEditURL() }}">Edit</a></li>
{% elif current_user.is_authenticated %}
<li><a href="">Suggest Change</a></li>
{% endif %}
</ul>
</aside>