/hudson-core/src/main/resources/lib/hudson/projectViewNested.jelly
http://github.com/hudson/hudson · Unknown · 56 lines · 51 code · 5 blank · 0 comment · 0 complexity · eead429ded03c5445ee491335b58ad55 MD5 · raw file
- <!--
- The MIT License
- Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- -->
- <!--
- Renders the nest view in <projectView />
- -->
- <?jelly escape-by-default='true'?>
- <j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout"
- xmlns:t="/lib/hudson" xmlns:f="/lib/form">
- <tr>
- <td colspan="2">
- <div style="${indenter.getRelativeShift(job)}">
- <j:choose>
- <j:when test="${request.getView(v,'ajaxRows.jelly')==null}">
- <img src="${imagesURL}/none.gif" state="plus" width="14" height="14" alt="" />
- </j:when>
- <j:otherwise>
- <!-- if nested view supports ajaxRows -->
- <a href="#">
- <img src="${imagesURL}/tree/plus.png" state="plus" width="14" height="14" alt="" class="fold-control treeview-fold-control"
- url="${rootURL}/${v.url}/ajaxRows?depth=${depth!=null?depth+1:1}"/>
- <st:adjunct includes="lib.hudson.projectViewNested" />
- </a>
- </j:otherwise>
- </j:choose>
- <img src="${imagesURL}/${iconSize}/folder.gif" style="margin-left:4px" alt="" />
- </div>
- </td>
- <td colspan="5" style="${indenter.getCss(job)}">
- <a href="${rootURL}/${v.url}">
- ${v.viewName}
- </a>
- </td>
- </tr>
- </j:jelly>