forked from enviPath/enviPy
62 lines
1.6 KiB
HTML
62 lines
1.6 KiB
HTML
{% if meta.can_edit %}
|
|
<li>
|
|
<a
|
|
role="button"
|
|
onclick="document.getElementById('edit_package_modal').showModal(); return false;"
|
|
>
|
|
<i class="glyphicon glyphicon-edit"></i> Edit Package</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
role="button"
|
|
onclick="document.getElementById('edit_package_permissions_modal').showModal(); return false;"
|
|
>
|
|
<i class="glyphicon glyphicon-user"></i> Edit Permissions</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
role="button"
|
|
onclick="document.getElementById('publish_package_modal').showModal(); return false;"
|
|
>
|
|
<i class="glyphicon glyphicon-bullhorn"></i> Publish Package</a
|
|
>
|
|
</li>
|
|
{% endif %}
|
|
<li>
|
|
<a
|
|
role="button"
|
|
onclick="document.getElementById('export_package_modal').showModal(); return false;"
|
|
>
|
|
<i class="glyphicon glyphicon-bullhorn"></i> Export Package as JSON</a
|
|
>
|
|
</li>
|
|
{% if meta.can_edit %}
|
|
<li>
|
|
<a
|
|
role="button"
|
|
onclick="document.getElementById('set_license_modal').showModal(); return false;"
|
|
>
|
|
<i class="glyphicon glyphicon-duplicate"></i> License</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a
|
|
class="button"
|
|
onclick="document.getElementById('generic_delete_modal').showModal(); return false;"
|
|
>
|
|
<i class="glyphicon glyphicon-trash"></i> Delete Package</a
|
|
>
|
|
</li>
|
|
{% endif %}
|
|
{% if not meta.can_edit %}
|
|
<li>
|
|
<a
|
|
role="button"
|
|
onclick="document.getElementById('view_package_permissions_modal').showModal(); return false;"
|
|
>
|
|
<i class="glyphicon glyphicon-user"></i> View Permissions</a
|
|
>
|
|
</li>
|
|
{% endif %} |