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

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

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

File size: 898 bytes
Line 
1
2<%--  Fetch to prevent lazy initialization error.  --%>
3<% assetInstance = Asset.read(assetInstance?.id)%>
4
5<div class="static_tree">
6    ${assetInstance?.encodeAsHTML()}
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>
13
14            <div id="treelevel1">
15
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>
23
24            </div>
25
26        </g:each> <!--assetSubItem1-->
27        </ul>
28    </div>
29</div>
Note: See TracBrowser for help on using the repository browser.