Skip to content

Commit

Permalink
Display delete button only when build is not locked (#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcechace authored and daniel-beck committed Jul 30, 2016
1 parent b27b150 commit 972437d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions core/src/main/resources/hudson/model/Run/confirmDelete.jelly
Expand Up @@ -24,20 +24,23 @@ THE SOFTWARE.

<!-- Confirm deletion of the build/run -->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout"
xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<l:layout title="${it.fullDisplayName}" norefresh="true">
<st:include page="sidepanel.jelly" />
<l:main-panel>
<st:include page="sidepanel.jelly"/>
<l:main-panel>
<j:set var="msg" value="${it.whyKeepLog}"/>
<j:if test="${msg!=null}">
<p class="warning">${%Warning}: ${msg}</p>
</j:if>
<p class="warning">${%Warning}: ${msg}</p>
</j:if>

<form method="post" action="doDelete">
${%Are you sure about deleting the build?}
<f:submit value="${%Yes}" />
</form>
<j:if test="${msg==null}">
<form method="post" action="doDelete">
${%Are you sure about deleting the build?}
<f:submit value="${%Yes}"/>
</form>
</j:if>

</l:main-panel>
</l:layout>
</l:main-panel>
</l:layout>
</j:jelly>

0 comments on commit 972437d

Please sign in to comment.