source: trunk/grails-app/views/shared/_assetTreeCompact.gsp @ 799

Last change on this file since 799 was 798, checked in by gav, 14 years ago

Svn merge -r752:r797 branches/features/taskProcedureRework into trunk/.

File size: 898 bytes
RevLine 
[780]1
[787]2<%--  Fetch to prevent lazy initialization error.  --%>
3<% assetInstance = Asset.read(assetInstance?.id)%>
4
[791]5<div class="static_tree">
[787]6    ${assetInstance?.encodeAsHTML()}
[791]7    <div class="static_tree_compact">
8        <ul>
9        <g:each var="assetSubItem1" in="${assetInstance?.assetSubItems?.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">
10            <li>
11                ${assetSubItem1?.encodeAsHTML()}
12            </li>
[780]13
[791]14            <div id="treelevel1">
[780]15
[791]16                <ul>
17                <g:each var="assetSubItem2" in="${assetSubItem1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">
18                    <li>
19                        ${assetSubItem2?.encodeAsHTML()}
20                    </li>
21                </g:each> <!--assetSubItem2-->
22                </ul>
[780]23
[791]24            </div>
[780]25
[791]26        </g:each> <!--assetSubItem1-->
27        </ul>
28    </div>
[787]29</div>
Note: See TracBrowser for help on using the repository browser.