提交 a2b6a606 编写于 作者: T Tom Huybrechts

- add 'disable project' button on matrix and maven builds

- remove it from sub-projects (maven modules and matrix configurations)
上级 8efe598d
......@@ -30,16 +30,27 @@ THE SOFTWARE.
<h1>${%Project} ${it.name}</h1>
<t:editableDescription permission="${it.CONFIGURE}"/>
<j:if test="${it.disabled}">
<div class="warning">
<form method="post" action="enable">
${%This project is currently disabled}
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Enable}" />
</l:hasPermission>
</form>
</div>
</j:if>
<j:choose>
<j:when test="${it.disabled}">
<div class="warning">
<form method="post" action="enable">
${%This project is currently disabled}
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Enable}" />
</l:hasPermission>
</form>
</div>
</j:when>
<j:otherwise>
<div align="right">
<form method="post" action="disable">
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Disable Project}" />
</l:hasPermission>
</form>
</div>
</j:otherwise>
</j:choose>
<st:include page="ajaxMatrix.jelly" />
......
......@@ -29,27 +29,29 @@ THE SOFTWARE.
<h1>${it.pronoun} ${it.displayName}</h1>
<t:editableDescription permission="${it.CONFIGURE}"/>
<j:choose>
<j:when test="${it.disabled}">
<div class="warning">
<form method="post" action="enable">
${%This project is currently disabled}
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Enable}" />
</l:hasPermission>
</form>
</div>
</j:when>
<j:otherwise>
<div align="right">
<form method="post" action="disable">
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Disable Project}" />
</l:hasPermission>
</form>
</div>
</j:otherwise>
</j:choose>
<j:if test="${it.parent == app}">
<j:choose>
<j:when test="${it.disabled}">
<div class="warning">
<form method="post" action="enable">
${%This project is currently disabled}
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Enable}" />
</l:hasPermission>
</form>
</div>
</j:when>
<j:otherwise>
<div align="right">
<form method="post" action="disable">
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Disable Project}" />
</l:hasPermission>
</form>
</div>
</j:otherwise>
</j:choose>
</j:if>
<st:include page="jobpropertysummaries.jelly" />
<!-- inject main part here -->
......
......@@ -30,7 +30,8 @@ THE SOFTWARE.
<h1>${it.pronoun} ${it.displayName}</h1>
<t:editableDescription permission="${it.CONFIGURE}"/>
<j:if test="${it.disabled}">
<j:choose>
<j:when test="${it.disabled}">
<div class="warning">
<form method="post" action="enable">
${%This project is currently disabled}
......@@ -39,7 +40,17 @@ THE SOFTWARE.
</l:hasPermission>
</form>
</div>
</j:if>
</j:when>
<j:otherwise>
<div align="right">
<form method="post" action="disable">
<l:hasPermission permission="${it.CONFIGURE}">
<f:submit value="${%Disable Project}" />
</l:hasPermission>
</form>
</div>
</j:otherwise>
</j:choose>
<p:projectActionFloatingBox />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册