提交 5b485c6c 编写于 作者: D Daniel Beck

Link from cloud configuration to pre-filtered plugin manager

上级 7b654b25
package jenkins.model.GlobalCloudConfiguration package jenkins.model.GlobalCloudConfiguration
import hudson.slaves.Cloud import hudson.slaves.Cloud
import jenkins.model.Jenkins
def f = namespace(lib.FormTagLib) def f = namespace(lib.FormTagLib)
...@@ -40,8 +41,10 @@ l.layout(norefresh:true, permission:app.ADMINISTER, title:my.displayName) { ...@@ -40,8 +41,10 @@ l.layout(norefresh:true, permission:app.ADMINISTER, title:my.displayName) {
} }
st.adjunct(includes: "lib.form.confirm") st.adjunct(includes: "lib.form.confirm")
} else { } else {
String label = Jenkins.get().updateCenter.getCategoryDisplayName("cloud")
p(_("There are no cloud implementations for dynamically allocated agents installed. ")) p(_("There are no cloud implementations for dynamically allocated agents installed. "))
a(href: rootURL + "/pluginManager/available", _("Go to plugin manager.")) a(href: rootURL + "/pluginManager/available?filter=" + URLEncoder.encode(label, "UTF-8"), _("Go to plugin manager."))
} }
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册