aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-23 02:30:40 (EST)
committerWinston Prakash2011-12-01 20:47:05 (EST)
commitf0008b731f54baa624f70eca07a7b11358bf229f (patch)
tree0ae362c39ece56c27042b3f682efe6eb406c4ed4
parent0ae6827778bd49ec74e4691c133ae38d4cd5f987 (diff)
downloadorg.eclipse.hudson.core-f0008b731f54baa624f70eca07a7b11358bf229f.zip
org.eclipse.hudson.core-f0008b731f54baa624f70eca07a7b11358bf229f.tar.gz
org.eclipse.hudson.core-f0008b731f54baa624f70eca07a7b11358bf229f.tar.bz2
Add resetUrl for hetero-list tag
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/resources/lib/form/hetero-list.jelly10
1 files changed, 10 insertions, 0 deletions
diff --git a/hudson-core/src/main/resources/lib/form/hetero-list.jelly b/hudson-core/src/main/resources/lib/form/hetero-list.jelly
index c6251e0..42822fa 100644
--- a/hudson-core/src/main/resources/lib/form/hetero-list.jelly
+++ b/hudson-core/src/main/resources/lib/form/hetero-list.jelly
@@ -47,6 +47,9 @@
<st:attribute name="isPropertyOverridden">
if present and true - value is overridden
</st:attribute>
+ <st:attribute name="resetUrl">
+ If present, Redo icon will rendered and Reset will be available.
+ </st:attribute>
</st:documentation>
<d:taglib uri="local">
<d:tag name="body">
@@ -113,4 +116,11 @@
<input type="button" value="${attrs.addCaption?:'%Add'}" class="hetero-list-add" />
</div>
</div>
+ <j:if test="${attrs.isPropertyOverridden and !empty(attrs.resetUrl)}">
+ <div class="hetero-list-reset">
+ <a href="#" class="reset-button" resetURL="${resetUrl}">
+ <img src="${imagesURL}/16x16/undo.png" alt="Reset ${title}" />
+ </a>
+ </div>
+ </j:if>
</j:jelly>