Skip to content

Commit 02fdbbd

Browse files
BobDumtughan
authored andcommitted
Deduplicate build-step usage icon wrapper in index view
Signed-off-by: Bob Du <i@bobdu.cc>
1 parent 45fba76 commit 02fdbbd

File tree

1 file changed

+8
-10
lines changed
  • src/main/resources/org/jenkinsci/plugins/scriptler/ScriptlerManagement

1 file changed

+8
-10
lines changed

src/main/resources/org/jenkinsci/plugins/scriptler/ScriptlerManagement/index.jelly

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,16 @@
5151
<l:icon tooltip="${%scriptNotYetApproved}" src="symbol-warning plugin-ionicons-api" class="icon-sm jenkins-!-warning-color"/>
5252
</j:otherwise>
5353
</j:choose>
54-
<j:choose>
55-
<j:when test="${t.nonAdministerUsing}">
56-
<span class="scriptler-icon-slot">
54+
<span class="scriptler-icon-slot">
55+
<j:choose>
56+
<j:when test="${t.nonAdministerUsing}">
5757
<l:icon tooltip="${%usableInBuildStep}" src="symbol-construct-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" />
58-
</span>
59-
</j:when>
60-
<j:otherwise>
61-
<span class="scriptler-icon-slot">
58+
</j:when>
59+
<j:otherwise>
6260
<l:icon tooltip="${%notUsableInBuildStep}" src="symbol-lock-closed-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" />
63-
</span>
64-
</j:otherwise>
65-
</j:choose>
61+
</j:otherwise>
62+
</j:choose>
63+
</span>
6664
<l:hasPermission permission="${it.scriptlerRunScripts}">
6765
<a href="runScript?id=${t.id}" class="scriptler-icon-slot">
6866
<l:icon tooltip="${%runScript} ${t.name}" src="symbol-terminal-outline plugin-ionicons-api" class="icon-sm jenkins-!-text-color-secondary" />

0 commit comments

Comments
 (0)