Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Jul 8, 2022
1 parent ebc774f commit b5c195f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ l.layout(norefresh: true, permission: app.MANAGE, title: my.displayName) {
f.bottomButtonBar {
f.submit(value: _(app.isQuietingDown()
? Messages.ShutdownLink_ShutDownReason_update()
: Messages.ShutdownLink_DisplayName_prepare()))
: Messages.ShutdownLink_DisplayName_prepare()),
clazz: "jenkins-!-destructive-color")
}
}

Expand Down
3 changes: 2 additions & 1 deletion core/src/main/resources/lib/form/submit.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ THE SOFTWARE.
The text of the submit button, defaults to 'Submit'
It's recommended to be more descriptive when possible, e.g. 'Create', 'Next'
</s:attribute>
<s:attribute name="clazz" />
</s:documentation>

<button name="${attrs.name ?: 'Submit'}"
class="jenkins-button jenkins-button--primary">
class="jenkins-button jenkins-button--primary ${attrs.clazz}">
${attrs.value ?: '%Submit'}
</button>
</j:jelly>
6 changes: 6 additions & 0 deletions war/src/main/less/pages/manage-jenkins.less
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
position: relative;
float: right;
margin: -6px 0 0 !important;
display: flex;
gap: 0.5rem;

& > div {
display: contents;
}
}

.manage-messages .alert form span {
Expand Down

0 comments on commit b5c195f

Please sign in to comment.