/hudson-core/src/main/resources/hudson/model/Hudson/manage.jelly

http://github.com/hudson/hudson · Unknown · 123 lines · 113 code · 10 blank · 0 comment · 0 complexity · 376b22cbeb10df7168c941f11c448079 MD5 · raw file

  1. <!--
  2. The MIT License
  3. Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe, Stephen Connolly, id:cactusman
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. THE SOFTWARE.
  19. -->
  20. <!--
  21. Entrance to the configuration page
  22. -->
  23. <?jelly escape-by-default='true'?>
  24. <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
  25. <l:layout title="${%Manage Hudson}" xmlns:local="local" permission="${app.ADMINISTER}">
  26. <d:taglib uri="local">
  27. <!-- table to show a map -->
  28. <d:tag name="feature">
  29. <t:summary icon="${icon}"
  30. href="${href}" iconOnly="true">
  31. <div class="link"><a href="${href}">${title}</a></div>
  32. <div style="color:gray; text-decoration:none;">
  33. <d:invokeBody />
  34. </div>
  35. </t:summary>
  36. </d:tag>
  37. </d:taglib>
  38. <st:include page="sidepanel.jelly" />
  39. <l:main-panel>
  40. <h1>${%Manage Hudson}</h1>
  41. <j:if test="${it.checkURIEncodingEnabled}">
  42. <script>
  43. var url='checkURIEncoding';
  44. var params='value=\u57f7\u4e8b';
  45. var checkAjax=new Ajax.Updater(
  46. 'message', url,
  47. {
  48. method: 'get', parameters: params
  49. }
  50. );
  51. </script>
  52. <span id="message"></span>
  53. </j:if>
  54. <j:forEach var="am" items="${app.administrativeMonitors}">
  55. <j:if test="${am.isActivated() and am.isEnabled()}">
  56. <st:include page="message.jelly" it="${am}" />
  57. </j:if>
  58. </j:forEach>
  59. <st:include page="downgrade.jelly" />
  60. <table style="padding-left: 2em;" id="management-links">
  61. <local:feature icon="setting.gif" href="configure" title="${%Configure System}">
  62. ${%Configure global settings and paths.}
  63. </local:feature>
  64. <local:feature icon="refresh.gif" href="reload" title="${%Reload Configuration from Disk}">
  65. ${%Discard all the loaded data in memory and reload everything from file system.}
  66. ${%Useful when you modified config files directly on disk.}
  67. </local:feature>
  68. <local:feature icon="plugin.gif" href="pluginManager/" title="${%Manage Plugins}">
  69. ${%Add, remove, disable or enable plugins that can extend the functionality of Hudson.}
  70. <j:if test="${it.updateCenter.hasUpdates()}">
  71. <span style="color:red; font-weight:bold">(${%updates available})</span>
  72. </j:if>
  73. </local:feature>
  74. <local:feature icon="computer.gif" href="systemInfo" title="${%System Information}">
  75. ${%Displays various environmental information to assist trouble-shooting.}
  76. </local:feature>
  77. <local:feature icon="clipboard.gif" href="log" title="${%System Log}">
  78. ${%SystemLogText}
  79. </local:feature>
  80. <local:feature icon="monitor.gif" href="load-statistics" title="${%Load Statistics}">
  81. ${%LoadStatisticsText}
  82. </local:feature>
  83. <local:feature icon="terminal.gif" href="cli" title="${%Hudson CLI}">
  84. ${%HudsonCliText}
  85. </local:feature>
  86. <local:feature icon="notepad.gif" href="script" title="${%Script Console}">
  87. ${%Executes arbitrary script for administration/trouble-shooting/diagnostics.}
  88. </local:feature>
  89. <local:feature icon="network.gif" href="computer/" title="${%Manage Nodes}">
  90. ${%Add, remove, control and monitor the various nodes that Hudson runs jobs on.}
  91. </local:feature>
  92. <!-- TODO: replace all the hard-coded ones with the standard extension point -->
  93. <j:forEach var="m" items="${it.managementLinks}">
  94. <j:if test="${m.iconFileName!=null}">
  95. <local:feature icon="${m.iconFileName}" href="${m.urlName}" title="${m.displayName}">
  96. <j:out value="${m.description}"/>
  97. </local:feature>
  98. </j:if>
  99. </j:forEach>
  100. <j:choose>
  101. <j:when test="${it.quietingDown}">
  102. <local:feature icon="system-log-out.gif" href="cancelQuietDown" title="${%Cancel Shutdown}"/>
  103. </j:when>
  104. <j:otherwise>
  105. <local:feature icon="system-log-out.gif" href="quietDown" title="${%Prepare for Shutdown}">
  106. ${%Stops executing new builds, so that the system can be eventually shut down safely.}
  107. </local:feature>
  108. </j:otherwise>
  109. </j:choose>
  110. </table>
  111. </l:main-panel>
  112. </l:layout>
  113. </j:jelly>