Skip to content

Commit

Permalink
Restore missing description for administrative monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 22, 2021
1 parent 40191ec commit 78735a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ f.section(title: _("Administrative monitors configuration")) {
p(class: "jenkins-form-description", _("blurb"))
for (AdministrativeMonitor am : new ArrayList<>(AdministrativeMonitor.all())
.sort({ o1, o2 -> o1.getDisplayName() <=> o2.getDisplayName() })) {
div(class: "jenkins-checkbox-help-wrapper", style: "margin-bottom: 0.75rem;") {
div(class: "jenkins-checkbox-help-wrapper") {
f.checkbox(name: "administrativeMonitor",
title: am.displayName,
checked: am.enabled,
Expand All @@ -44,6 +44,11 @@ f.section(title: _("Administrative monitors configuration")) {
span(style: 'margin-left: 0.5rem', class: 'am-badge', _("Security"))
}
}
div(class: "tr") {
div(class: "jenkins-checkbox__description") {
st.include(from: am, page: "description", optional: true)
}
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,11 @@
}

.jenkins-checkbox__description {
margin-top: 15px;
margin-left: 65px;
opacity: 0.75;
margin-top: 0.3rem;
margin-left: 34px;
margin-bottom: 1rem;
color: var(--text-color-secondary);
line-height: 1.66;
}

.jenkins-toggle-switch {
Expand Down

0 comments on commit 78735a6

Please sign in to comment.