index.gsp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta name="layout" content="main"/>
  5. <title>Welcome to Grails</title>
  6. <style type="text/css" media="screen">
  7. #status {
  8. background-color: #eee;
  9. border: .2em solid #fff;
  10. margin: 2em 2em 1em;
  11. padding: 1em;
  12. width: 12em;
  13. float: left;
  14. -moz-box-shadow: 0px 0px 1.25em #ccc;
  15. -webkit-box-shadow: 0px 0px 1.25em #ccc;
  16. box-shadow: 0px 0px 1.25em #ccc;
  17. -moz-border-radius: 0.6em;
  18. -webkit-border-radius: 0.6em;
  19. border-radius: 0.6em;
  20. }
  21. .ie6 #status {
  22. display: inline; /* float double margin fix http://www.positioniseverything.net/explorer/doubled-margin.html */
  23. }
  24. #status ul {
  25. font-size: 0.9em;
  26. list-style-type: none;
  27. margin-bottom: 0.6em;
  28. padding: 0;
  29. }
  30. #status li {
  31. line-height: 1.3;
  32. }
  33. #status h1 {
  34. text-transform: uppercase;
  35. font-size: 1.1em;
  36. margin: 0 0 0.3em;
  37. }
  38. #page-body {
  39. margin: 2em 1em 1.25em 18em;
  40. }
  41. h2 {
  42. margin-top: 1em;
  43. margin-bottom: 0.3em;
  44. font-size: 1em;
  45. }
  46. p {
  47. line-height: 1.5;
  48. margin: 0.25em 0;
  49. }
  50. #controller-list ul {
  51. list-style-position: inside;
  52. }
  53. #controller-list li {
  54. line-height: 1.3;
  55. list-style-position: inside;
  56. margin: 0.25em 0;
  57. }
  58. @media screen and (max-width: 480px) {
  59. #status {
  60. display: none;
  61. }
  62. #page-body {
  63. margin: 0 1em 1em;
  64. }
  65. #page-body h1 {
  66. margin-top: 0;
  67. }
  68. }
  69. </style>
  70. </head>
  71. <body>
  72. <a href="#page-body" class="skip"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
  73. <div id="status" role="complementary">
  74. <h1>Application Status</h1>
  75. <ul>
  76. <li>App version: <g:meta name="app.version"/></li>
  77. <li>Grails version: <g:meta name="app.grails.version"/></li>
  78. <li>Groovy version: ${org.codehaus.groovy.runtime.InvokerHelper.getVersion()}</li>
  79. <li>JVM version: ${System.getProperty('java.version')}</li>
  80. <li>Reloading active: ${grails.util.Environment.reloadingAgentEnabled}</li>
  81. <li>Controllers: ${grailsApplication.controllerClasses.size()}</li>
  82. <li>Domains: ${grailsApplication.domainClasses.size()}</li>
  83. <li>Services: ${grailsApplication.serviceClasses.size()}</li>
  84. <li>Tag Libraries: ${grailsApplication.tagLibClasses.size()}</li>
  85. </ul>
  86. <h1>Installed Plugins</h1>
  87. <ul>
  88. <g:each var="plugin" in="${applicationContext.getBean('pluginManager').allPlugins}">
  89. <li>${plugin.name} - ${plugin.version}</li>
  90. </g:each>
  91. </ul>
  92. </div>
  93. <div id="page-body" role="main">
  94. <h1>Welcome to Grails</h1>
  95. <p>Congratulations, you have successfully started your first Grails application! At the moment
  96. this is the default page, feel free to modify it to either redirect to a controller or display whatever
  97. content you may choose. Below is a list of controllers that are currently deployed in this application,
  98. click on each to execute its default action:</p>
  99. <div id="controller-list" role="navigation">
  100. <h2>Available Controllers:</h2>
  101. <ul>
  102. <g:each var="c" in="${grailsApplication.controllerClasses.sort { it.fullName } }">
  103. <li class="controller"><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li>
  104. </g:each>
  105. </ul>
  106. </div>
  107. </div>
  108. </body>
  109. </html>