source: trunk/grails-app/views/layouts/main.gsp @ 312

Last change on this file since 312 was 312, checked in by gav, 15 years ago

Refactor asset tree taglib to populate the asset tree table via an ajax call to AssetTreeService.
Move assetTree javascript to it's own js file and util javascript to a util.js file and service.

File size: 1.9 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3    <head>
4        <title><g:layoutTitle default="gnuMims" /></title>
5        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
6        <link rel="shortcut icon" href="${resource(dir:'images',file:'gnuMimsIcon.ico')}" type="image/x-icon" />
7        <g:layoutHead />
8        <g:helpBalloons/>
9        <nav:resources override="true"/>
10        <g:javascript library="application" />
11        <g:javascript library="prototype/effects" />
12        <g:javascript src="overlayPane.js" />
13        <g:javascript src="util.js" />
14        <gnuMims:resources />
15    </head>
16
17    <!-- Added g:pageProperty so that onload in each page works -->
18    <body onload="<g:pageProperty name='body.onload'/>">
19        <div id="wrapper" style="height: 100%;">
20            <div id="top">
21            </div>
22            <div id="content" align="center">
23                <div id="spinner" class="spinner" style="display:none;">
24                    <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
25                </div> 
26                <div id="Header">
27                    <a href="http://www.gnumims.org" id=HeaderLink></a>
28                </div>
29
30                <g:isLoggedIn>
31                    <div class="appControl">
32                        <g:link controller="logout" class="logoutButton">
33                                Log out (<g:loggedInUsername/>)
34                        </g:link>
35                        <div id="menu">
36                            <nav:render group="nav"/>
37                        </div>
38                        <gnuMims:assetTreeButton />
39                    </div>
40                </g:isLoggedIn>
41
42                <g:layoutBody />
43
44            </div> <!-- content -->
45            <div id="bottom">
46            </div>
47        </div> <!-- wrapper -->
48
49        <!-- Asset Tree Pane -->
50        <gnuMims:assetTreePane />
51
52    </body>
53</html>
Note: See TracBrowser for help on using the repository browser.