Skip to content

Commit

Permalink
Update settings pages to use app bar component over hardcoded HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Jan 9, 2022
1 parent 07eb2c3 commit fd5a5a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ def l=namespace(lib.LayoutTagLib)
def st=namespace("jelly:stapler")

l.layout(permission:app.SYSTEM_READ, title:my.displayName, cssclass:request.getParameter('decorate')) {
l.app_bar(title: my.displayName)

l.main_panel {
div(class: "jenkins-app-bar") {
div(class: "jenkins-app-bar__content") {
h1 {
text(my.displayName)
}
}
}
set("readOnlyMode", !app.hasPermission(app.ADMINISTER))

p()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ l.layout(norefresh:true, permission:app.SYSTEM_READ, title:my.displayName) {
l.task(icon:"icon-gear icon-md", href:"${rootURL}/computer/", title:_("Manage Nodes"))
}
}
l.app_bar(title: my.displayName)
l.main_panel {
div(class: "jenkins-app-bar") {
div(class: "jenkins-app-bar__content") {
h1 {
text(my.displayName)
}
}
}
def clouds = Cloud.all()
if (!clouds.isEmpty()) {
p()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,9 @@ l.layout(permission:app.SYSTEM_READ, title:my.displayName) {
l.task(icon:"icon-gear icon-md", href:"${rootURL}/manage", title:_("Manage Jenkins"))
}
}
l.app_bar(title: my.displayName)
set("readOnlyMode", !app.hasPermission(app.ADMINISTER))
l.main_panel {
h1 {
l.icon(class: 'icon-setting icon-xlg')
// TODO more appropriate icon
text(my.displayName)
}

p()
div(class:"behavior-loading") {
l.spinner(text: _("LOADING"))
}
Expand Down

0 comments on commit fd5a5a7

Please sign in to comment.