Skip to content

Commit

Permalink
Update config.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Sep 16, 2024
1 parent f5d7e3c commit f720ba8
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,19 @@ st = namespace("jelly:stapler")

f.section(title: _("Administrative monitors configuration")) {
f.advanced(title: _("Administrative monitors")) {
f.entry(title: _("Enabled administrative monitors")) {
p(class: "jenkins-form-description", _("blurb"))
f.entry(title: _("Enabled administrative monitors"), description: _("blurb")) {
for (AdministrativeMonitor am : new ArrayList<>(AdministrativeMonitor.all())
.sort({ o1, o2 -> o1.getDisplayName() <=> o2.getDisplayName() })) {
div(class: "jenkins-checkbox-help-wrapper") {
f.checkbox(name: "administrativeMonitor",
title: am.displayName,
checked: am.enabled,
json: am.id)
if (am.isSecurity()) {
span(style: 'margin-left: 0.5rem', class: 'am-badge', _("Security"))
div(style: "margin-bottom: 5px") {
div(class: "jenkins-checkbox-help-wrapper") {
f.checkbox(name: "administrativeMonitor",
title: am.displayName,
checked: am.enabled,
json: am.id)
if (am.isSecurity()) {
span(style: 'margin-left: 0.5rem', class: 'am-badge', _("Security"))
}
}
}
div(class: "tr") {
div(class: "jenkins-checkbox__description") {
st.include(it: am, page: "description", optional: true)
}
Expand Down

0 comments on commit f720ba8

Please sign in to comment.