Skip to content

Commit

Permalink
Update index.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 14, 2021
1 parent cce4f8a commit 8c00e89
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName) {
}
set("readOnlyMode", !app.hasPermission(app.ADMINISTER))
l.main_panel {
div(class:"jenkins-app-bar") {
div(class: "jenkins-app-bar__content") {
h1 {
text(my.displayName)
}
}
h1 {
l.icon(class: 'icon-setting icon-xlg')
// TODO more appropriate icon
text(my.displayName)
}

p()
Expand All @@ -33,12 +31,9 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName) {
Functions.getSortedDescriptorsForGlobalConfigByDescriptor(my.FILTER).each { Descriptor descriptor ->
set("descriptor",descriptor)
set("instance",descriptor)

div(class: "row-set-start row-group-start tr", style: "display:none", name: descriptor.jsonSafeClassName)
div(name:descriptor.jsonSafeClassName, class: "jenkins-section") {
f.rowSet(name:descriptor.jsonSafeClassName) {
st.include(from:descriptor, page:descriptor.globalConfigPage)
}
div(class: "row-set-end row-group-end tr")
}

l.isAdmin() {
Expand Down

0 comments on commit 8c00e89

Please sign in to comment.