未验证 提交 5ebea39a 编写于 作者: O Oleg Nenashev 提交者: GitHub

Merge pull request #4017 from jsoref/abandon-manag_

Remove manag_.groovy
package hudson.model.Hudson
l=namespace(lib.LayoutTagLib)
t=namespace(lib.JenkinsTagLib)
st=namespace("jelly:stapler")
def feature(String icon, String href, String title, Closure body=null) {
t.summary(icon:icon, href:href, iconOnly:true) {
div(class:"link") {
a(href:href, title)
}
div(style:"color:gray; text-decoration:none;",body)
}
}
l.layout(title:_("Manage Jenkins"),permission:app.ADMINISTER) {
st.include(page:"sidepanel")
l.main_panel {
h1(_("Manage Jenkins"))
if (my.isCheckURIEncodingEnabled()) {
script """
var url='checkURIEncoding';
var params='value=\u57f7\u4e8b';
var checkAjax=new Ajax.Updater(
'message', url,
{
method: 'get', parameters: params
}
);
"""
span(id:"message")
}
app.administrativeMonitors.each { am ->
if (am.isActivated() && am.isEnabled())
st.include(it:am, page:"message")
}
st.include(page:"downgrade")
table(style:"padding-left: 2em;",id:"management-links") {
feature("setting.gif", "configure", _("Configure System")) {
raw(_("Configure global settings and paths."))
}
// TODO: more features
app.managementLinks.each { m ->
if (m.iconFileName==null) return;
feature(m.iconFileName, m.urlName, m.displayName) {
raw(m.description)
}
}
if (app.quietingDown) {
feature("system-log-out.gif","cancelQuietDown",_("Cancel Shutdown"))
} else {
feature("system-log-out.gif","quietDown",_("Prepare for Shutdown")) {
raw(_("Stops executing new builds, so that the system can be eventually shut down safely."))
}
}
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册