mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
follow the instance/descriptor pattern
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16482 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
67f5d86b45
commit
916e5fc277
1 file changed
+6
-5
@@ -31,13 +31,14 @@ THE SOFTWARE.
|
||||
<f:dropdownList name="${name}" title="${%Repository browser}">
|
||||
<f:dropdownListBlock value="auto" title="(${%Auto})" />
|
||||
<j:set var="currentBrowser" value="${scm.browser}"/>
|
||||
<j:forEach var="d" items="${scmd.browserDescriptors}" varStatus="loop">
|
||||
<f:dropdownListBlock value="${loop.index}" title="${d.displayName}" selected="${currentBrowser.descriptor==d}">
|
||||
<j:set var="browser" value="${h.ifThenElse(currentBrowser.descriptor==d, currentBrowser, null)}"/>
|
||||
<j:forEach var="descriptor" items="${scmd.browserDescriptors}" varStatus="loop">
|
||||
<f:dropdownListBlock value="${loop.index}" title="${d.displayName}" selected="${currentBrowser.descriptor==descriptor}">
|
||||
<j:set var="browser" value="${currentBrowser.descriptor==descriptor ? currentBrowser : null}"/><!-- for compatibility -->
|
||||
<j:set var="instance" value="${browser}" />
|
||||
<tr><td>
|
||||
<input type="hidden" name="stapler-class" value="${d.clazz.name}" />
|
||||
<input type="hidden" name="stapler-class" value="${descriptor.clazz.name}" />
|
||||
</td></tr>
|
||||
<st:include from="${d}" page="${d.configPage}"/>
|
||||
<st:include from="${descriptor}" page="${descriptor.configPage}"/>
|
||||
</f:dropdownListBlock>
|
||||
</j:forEach>
|
||||
</f:dropdownList>
|
||||
|
||||
Reference in new issue
Block a user