Commit a229716d authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

Merge branch '231-provide-button-in-my-extensions-overview-to-abandon-an-extension' into 'develop'

Adds a button to abandon extensions

Closes #231

See merge request !230
parents cb77f7df ffe27bdb
Pipeline #2368 passed with stages
in 2 minutes and 17 seconds
......@@ -87,10 +87,18 @@
</td>
<td class="text-right">
<f:if condition="{extension.versionCount} < 1">
<f:link.action class="btn btn-danger" onclick="if (confirm('Really release?')) return true; else return false;" action="delete" controller="Registerkey" arguments="{extension: extension}">
<i class="fa fa-trash-o"></i>
Delete
</f:link.action>
<f:then>
<f:link.action class="btn btn-danger" onclick="if (confirm('Really delete key \"{extension.extKey}\"?')) return true; else return false;" action="delete" controller="Registerkey" arguments="{extension: extension}">
<i class="fa fa-trash-o"></i>
Delete
</f:link.action>
</f:then>
<f:else>
<f:link.action class="btn btn-secondary" onclick="if (confirm('Really abandon key \"{extension.extKey}\"?')) return true; else return false;" action="transfer" controller="Registerkey" arguments="{extension: extension, newUser: 'abandoned_extensions'}">
<i class="fa fa-trash-o"></i>
Abandon
</f:link.action>
</f:else>
</f:if>
<f:link.action class="btn btn-info" action="edit" controller="Extension" arguments="{extension: extension}">
<i class="fa fa-pencil"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment