Changeset 791


Ignore:
Timestamp:
Feb 7, 2011, 1:14:44 PM (8 years ago)
Author:
gav
Message:

Add static_tree_compact css to allow scrollable compact asset tree.

Location:
branches/features/taskProcedureRework
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/features/taskProcedureRework/grails-app/views/shared/_assetTreeCompact.gsp

    r787 r791  
    33<% assetInstance = Asset.read(assetInstance?.id)%>
    44
    5 <div class="static_tree" >
     5<div class="static_tree">
    66    ${assetInstance?.encodeAsHTML()}
    7     <ul>
    8     <g:each var="assetSubItem1" in="${assetInstance?.assetSubItems?.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">
    9         <li>
    10             ${assetSubItem1?.encodeAsHTML()}
    11         </li>
     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>
    1213
    13         <div id="treelevel1">
     14            <div id="treelevel1">
    1415
    15             <ul>
    16             <g:each var="assetSubItem2" in="${assetSubItem1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">
    17                 <li>
    18                     ${assetSubItem2?.encodeAsHTML()}
    19                 </li>
    20             </g:each> <!--assetSubItem2-->
    21             </ul>
     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>
    2223
    23         </div>
     24            </div>
    2425
    25     </g:each> <!--assetSubItem1-->
    26     </ul>
     26        </g:each> <!--assetSubItem1-->
     27        </ul>
     28    </div>
    2729</div>
  • branches/features/taskProcedureRework/web-app/css/main.css

    r729 r791  
    690690div.static_tree {
    691691}
     692div.static_tree_compact {
     693    height:10em;
     694    width:100%;
     695    overflow:auto;
     696}
    692697div.static_tree ul {
    693698    list-style-type: none;
Note: See TracChangeset for help on using the changeset viewer.