Last change
on this file since 898 was
885,
checked in by gav, 14 years ago
|
Refactor assetTreeCompact to use includes and controller action instead of direct render call in gsp.
|
File size:
785 bytes
|
Rev | Line | |
---|
[791] | 1 | <div class="static_tree"> |
---|
[885] | 2 | ${assetInstance.encodeAsHTML()} |
---|
[791] | 3 | <div class="static_tree_compact"> |
---|
| 4 | <ul> |
---|
[885] | 5 | <g:each var="assetSubItem1" in="${assetInstance.assetSubItems?.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
[791] | 6 | <li> |
---|
[885] | 7 | ${assetSubItem1.encodeAsHTML()} |
---|
[791] | 8 | </li> |
---|
[780] | 9 | |
---|
[791] | 10 | <div id="treelevel1"> |
---|
[780] | 11 | |
---|
[791] | 12 | <ul> |
---|
| 13 | <g:each var="assetSubItem2" in="${assetSubItem1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 14 | <li> |
---|
[885] | 15 | ${assetSubItem2.encodeAsHTML()} |
---|
[791] | 16 | </li> |
---|
| 17 | </g:each> <!--assetSubItem2--> |
---|
| 18 | </ul> |
---|
[780] | 19 | |
---|
[791] | 20 | </div> |
---|
[780] | 21 | |
---|
[791] | 22 | </g:each> <!--assetSubItem1--> |
---|
| 23 | </ul> |
---|
| 24 | </div> |
---|
[787] | 25 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.