提交 f7ef77be 编写于 作者: O Oleg Nenashev 提交者: GitHub

Merge pull request #2692 from daniel-beck/JENKINS-38175

[FIX JENKINS-38175] Fix various ManagementLink related bugs
......@@ -56,5 +56,9 @@ public class ReloadLink extends ManagementLink {
@Override public boolean getRequiresConfirmation() {
return true;
}
@Override
public boolean getRequiresPOST() {
return true;
}
}
......@@ -32,15 +32,15 @@ THE SOFTWARE.
<!-- table to show a map -->
<d:tag name="feature">
<j:set var="iconUrl" value="${icon.startsWith('/') ? resURL+icon : imagesURL+'/48x48/'+icon}"/>
${taskTags!=null and attrs.contextMenu!='false' ? taskTags.add(href,iconUrl,title,requiresConfirmation,requiresConfirmation) : null}
${taskTags!=null and attrs.contextMenu!='false' ? taskTags.add(href,iconUrl,title,post,requiresConfirmation) : null}
<!-- TODO summary.jelly should be modified to accept requiresConfirmation so the icon link can be included -->
<j:set var="_href" value="${href}"/>
<t:summary icon="${icon}"
href="${requiresConfirmation ? null : href}" iconOnly="true">
href="${requiresConfirmation || post ? null : href}" iconOnly="true">
<div class="link">
<j:choose>
<j:when test="${requiresConfirmation}">
<l:confirmationLink href="${_href}" post="true" message="${%are.you.sure(title)}">${title}</l:confirmationLink>
<l:confirmationLink href="${_href}" post="${post}" message="${%are.you.sure(title)}">${title}</l:confirmationLink>
</j:when>
<j:otherwise>
<f:link href="${_href}" post="${post}">${title}</f:link>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册