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

Last change on this file since 711 was 711, checked in by gav, 13 years ago

Make prototype javascript library available in main layout.

File size: 2.6 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:javascript library="prototype/prototype" />
8        <g:javascript library="prototype/effects" />
9        <g:javascript library="application" />
10        <g:javascript src="overlayPane.js" />
11        <jsUtil:resources />
12        <gnuMims:resources />
13        <nav:resources override="true"/>
14        <g:helpBalloons icon="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}"
15                                        button="${resource(plugin:'help-balloons', dir:'images', file:'balloon-button.png')}"
16                                        balloonPrefix="${resource(plugin:'help-balloons', dir:'images')}/balloon-"/>
17        <g:layoutHead />
18    </head>
19
20    <!-- Added g:pageProperty so that onload in each page works -->
21    <body onload="${pageProperty(name: 'body.onload')}">
22        <div id="wrapper" style="height: 100%;">
23            <div id="top">
24            </div>
25            <div id="content" align="center">
26                <div id="spinner" class="spinner" style="display:none;">
27                    <img src="${resource(dir:'images',file:'loading_bar.gif')}" alt="Spinner" />
28                </div>
29                <g:if env="production">
30                    <div id="Header">
31                        <a href="http://www.gnumims.org" id=HeaderLink></a>
32                    </div>
33                </g:if>
34                <g:else>
35                    <div id="HeaderDev">
36                        <a href="http://www.gnumims.org" id=HeaderLink></a>
37                    </div>
38                </g:else>
39
40                <g:isLoggedIn>
41                    <div class="appControl">
42                        <g:link controller="logout" class="logoutButton">
43                                Log out (<g:loggedInUsername/>)
44                        </g:link>
45                        <div id="menu">
46                            <nav:render group="nav"/>
47                        </div>
48                        <gnuMims:assetTreeButton />
49                    </div>
50                </g:isLoggedIn>
51
52                <g:layoutBody />
53
54            </div> <!-- content -->
55            <div id="bottom">
56            </div>
57        </div> <!-- wrapper -->
58
59        <!-- Asset Tree Pane -->
60        <gnuMims:assetTreePane />
61
62    </body>
63</html>
Note: See TracBrowser for help on using the repository browser.