source: branches/util-apps/DomainUtil/grails-app/views/index.gsp @ 907

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

Upgrade branches/util-apps/DomainUtil to Grails-1.3.7.

File size: 3.8 KB
Line 
1<html>
2    <head>
3        <title>Welcome to Grails</title>
4        <meta name="layout" content="main" />
5        <style type="text/css" media="screen">
6
7        #nav {
8            margin-top:20px;
9            margin-left:30px;
10            width:228px;
11            float:left;
12
13        }
14        .homePagePanel * {
15            margin:0px;
16        }
17        .homePagePanel .panelBody ul {
18            list-style-type:none;
19            margin-bottom:10px;
20        }
21        .homePagePanel .panelBody h1 {
22            text-transform:uppercase;
23            font-size:1.1em;
24            margin-bottom:10px;
25        }
26        .homePagePanel .panelBody {
27            background: url(images/leftnav_midstretch.png) repeat-y top;
28            margin:0px;
29            padding:15px;
30        }
31        .homePagePanel .panelBtm {
32            background: url(images/leftnav_btm.png) no-repeat top;
33            height:20px;
34            margin:0px;
35        }
36
37        .homePagePanel .panelTop {
38            background: url(images/leftnav_top.png) no-repeat top;
39            height:11px;
40            margin:0px;
41        }
42        h2 {
43            margin-top:15px;
44            margin-bottom:15px;
45            font-size:1.2em;
46        }
47        #pageBody {
48            margin-left:280px;
49            margin-right:20px;
50        }
51        </style>
52    </head>
53    <body>
54        <div id="nav">
55            <div class="homePagePanel">
56                <div class="panelTop"></div>
57                <div class="panelBody">
58                    <h1>Application Status</h1>
59                    <ul>
60                        <li>App version: <g:meta name="app.version"></g:meta></li>
61                        <li>Grails version: <g:meta name="app.grails.version"></g:meta></li>
62                        <li>Groovy version: ${org.codehaus.groovy.runtime.InvokerHelper.getVersion()}</li>
63                        <li>JVM version: ${System.getProperty('java.version')}</li>
64                        <li>Controllers: ${grailsApplication.controllerClasses.size()}</li>
65                        <li>Domains: ${grailsApplication.domainClasses.size()}</li>
66                        <li>Services: ${grailsApplication.serviceClasses.size()}</li>
67                        <li>Tag Libraries: ${grailsApplication.tagLibClasses.size()}</li>
68                    </ul>
69                    <h1>Installed Plugins</h1>
70                    <ul>
71                        <g:set var="pluginManager"
72                               value="${applicationContext.getBean('pluginManager')}"></g:set>
73
74                        <g:each var="plugin" in="${pluginManager.allPlugins}">
75                            <li>${plugin.name} - ${plugin.version}</li>
76                        </g:each>
77
78                    </ul>
79                </div>
80                <div class="panelBtm"></div>
81            </div>
82        </div>
83        <div id="pageBody">
84            <h1>Welcome to Grails</h1>
85            <p>Congratulations, you have successfully started your first Grails application! At the moment
86            this is the default page, feel free to modify it to either redirect to a controller or display whatever
87            content you may choose. Below is a list of controllers that are currently deployed in this application,
88            click on each to execute its default action:</p>
89
90            <div id="controllerList" class="dialog">
91                <h2>Available Controllers:</h2>
92                <ul>
93                    <g:each var="c" in="${grailsApplication.controllerClasses.sort { it.fullName } }">
94                        <li class="controller"><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li>
95                    </g:each>
96                </ul>
97            </div>
98        </div>
99    </body>
100</html>
Note: See TracBrowser for help on using the repository browser.