Skip to content

Commit

Permalink
[JENKINS-25130] Add help per item when available.
Browse files Browse the repository at this point in the history
Looks a little odd because there is nothing we can put in the columns prior to the help button.
Originally-Committed-As: f5bf1a6ded8f1dae2a39c339308cf76b169091b2
  • Loading branch information
jglick committed Oct 13, 2014
1 parent 08f66ec commit d9eaac3
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -30,12 +30,21 @@
<f:entry field="sandbox" title="${%Use Groovy Sandbox}">
<f:checkbox/>
</f:entry>
<!-- Similar to f:dropdownDescriptorSelector, but adds fallback content to block, and JENKINS-25130 adds per-selection help: -->
<f:dropdownList name="_prototype" title="Sample Step"> <!-- TODO could add help attr -->
<j:forEach var="stepDescriptor" items="${descriptor.stepDescriptors}">
<f:dropdownListBlock title="${stepDescriptor.displayName}" staplerClass="${stepDescriptor.clazz.name}" lazy="stepDescriptor">
<l:ajax>
<j:set var="instance" value="${null}"/>
<j:set var="descriptor" value="${stepDescriptor}"/>
<j:set var="help" value="${descriptor.helpFile}"/>
<j:if test="${help != null}">
<tr>
<td colspan="3"/>
<f:helpLink url="${help}"/>
</tr>
<f:helpArea/>
</j:if>
<st:include from="${descriptor}" page="${descriptor.configPage}" optional="true">
<f:block>
${%This step has not yet defined any visual configuration.}
Expand Down

0 comments on commit d9eaac3

Please sign in to comment.