提交 972437dd 编写于 作者: J Jakub Cechacek 提交者: Daniel Beck

Display delete button only when build is not locked (#2483)

上级 b27b1502
......@@ -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>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册