PageRenderTime 17ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

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