Refine Scriptler run/edit form styling for modern Jenkins themes#186
Open
BobDu wants to merge 1 commit intojenkinsci:mainfrom
Open
Refine Scriptler run/edit form styling for modern Jenkins themes#186BobDu wants to merge 1 commit intojenkinsci:mainfrom
BobDu wants to merge 1 commit intojenkinsci:mainfrom
Conversation
Signed-off-by: Bob Du <i@bobdu.cc>
mtughan
requested changes
Mar 3, 2026
| required core: ${t.core} | ||
| </td> | ||
| <td rowspan="2" valign="top"> | ||
| <td rowspan="2" valign="top" class="scriptler-catalog-params"> |
Contributor
There was a problem hiding this comment.
Is it possible to move the valign attribute to use the CSS property vertical-align instead?
| <tr valign="center" style="border-top: 0px;"> | ||
| <td class="pane" width="20"> | ||
| <tr> | ||
| <td class="scriptler-catalog-import" width="20"> |
Contributor
There was a problem hiding this comment.
Can we move the width attribute to use the CSS property width instead?
| <j:set var="approved" value="${i.approved}" /> | ||
| <j:set var="t" value="${i.script}" /> | ||
| <tr> | ||
| <td class="scriptler-toolbar" width="1%"> |
Contributor
There was a problem hiding this comment.
Same here (width attribute to CSS property width).
Comment on lines
+55
to
+64
| <j:when test="${t.nonAdministerUsing}"> | ||
| <span class="scriptler-icon-slot"> | ||
| <l:icon tooltip="${%usableInBuildStep}" src="symbol-construct-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" /> | ||
| </span> | ||
| </j:when> | ||
| <j:otherwise> | ||
| <span class="scriptler-icon-slot"> | ||
| <l:icon tooltip="${%notUsableInBuildStep}" src="symbol-lock-closed-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" /> | ||
| </span> | ||
| </j:otherwise> |
Contributor
There was a problem hiding this comment.
We can deduplicate some lines here.
Suggested change
| <j:when test="${t.nonAdministerUsing}"> | |
| <span class="scriptler-icon-slot"> | |
| <l:icon tooltip="${%usableInBuildStep}" src="symbol-construct-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" /> | |
| </span> | |
| </j:when> | |
| <j:otherwise> | |
| <span class="scriptler-icon-slot"> | |
| <l:icon tooltip="${%notUsableInBuildStep}" src="symbol-lock-closed-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" /> | |
| </span> | |
| </j:otherwise> | |
| <span class="scriptler-icon-slot"> | |
| <j:when test="${t.nonAdministerUsing}"> | |
| <l:icon tooltip="${%usableInBuildStep}" src="symbol-construct-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" /> | |
| </j:when> | |
| <j:otherwise> | |
| <l:icon tooltip="${%notUsableInBuildStep}" src="symbol-lock-closed-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" /> | |
| </j:otherwise> | |
| </span> |
Since the span element is common to both.
Comment on lines
+55
to
+67
| <div class="scriptler-edit-params"> | ||
| <f:optionalBlock name="defineParams" title="${%ParametersDescription}" checked="${!empty(script.parameters)}"> | ||
| <f:entry title="${%Parameters}" field="parameters"> | ||
| <j:set var="deleteText" value="${%DeleteParameter}" /> | ||
| <f:repeatable var="param" items="${script.parameters}" name="parameters" add="${%AddParameter}" | ||
| minimum="1"> | ||
| <div class="show-if-not-only"> | ||
| <button class="repeatable-delete danger" type="button" title="${deleteText}" aria-label="${deleteText}"> | ||
| <l:icon src="symbol-close" /> | ||
| </button> | ||
| </div> | ||
| <f:entry title="${%ParameterName}"> | ||
| <f:textbox name="name" value="${param.name}"/> |
Contributor
There was a problem hiding this comment.
There seems to be an extra tab added to each of these lines. Can we remove it?
Suggested change
| <div class="scriptler-edit-params"> | |
| <f:optionalBlock name="defineParams" title="${%ParametersDescription}" checked="${!empty(script.parameters)}"> | |
| <f:entry title="${%Parameters}" field="parameters"> | |
| <j:set var="deleteText" value="${%DeleteParameter}" /> | |
| <f:repeatable var="param" items="${script.parameters}" name="parameters" add="${%AddParameter}" | |
| minimum="1"> | |
| <div class="show-if-not-only"> | |
| <button class="repeatable-delete danger" type="button" title="${deleteText}" aria-label="${deleteText}"> | |
| <l:icon src="symbol-close" /> | |
| </button> | |
| </div> | |
| <f:entry title="${%ParameterName}"> | |
| <f:textbox name="name" value="${param.name}"/> | |
| <div class="scriptler-edit-params"> | |
| <f:optionalBlock name="defineParams" title="${%ParametersDescription}" checked="${!empty(script.parameters)}"> | |
| <f:entry title="${%Parameters}" field="parameters"> | |
| <j:set var="deleteText" value="${%DeleteParameter}" /> | |
| <f:repeatable var="param" items="${script.parameters}" name="parameters" add="${%AddParameter}" | |
| minimum="1"> | |
| <div class="show-if-not-only"> | |
| <button class="repeatable-delete danger" type="button" title="${deleteText}" aria-label="${deleteText}"> | |
| <l:icon src="symbol-close" /> | |
| </button> | |
| </div> | |
| <f:entry title="${%ParameterName}"> | |
| <f:textbox name="name" value="${param.name}"/> |
Comment on lines
+104
to
+106
| </f:form> | ||
| </l:main-panel> | ||
| </l:layout> |
Contributor
There was a problem hiding this comment.
Same here.
Suggested change
| </f:form> | |
| </l:main-panel> | |
| </l:layout> | |
| </f:form> | |
| </l:main-panel> | |
| </l:layout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After:
Before:



Testing done
Submitter checklist