Skip to content

Commit

Permalink
Update search-bar.jelly
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Aug 10, 2022
1 parent afebc6f commit 9bec29f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/src/main/resources/lib/layout/search-bar.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ THE SOFTWARE.
<st:attribute name="id" />
<st:attribute name="autofocus" />
<st:attribute name="clazz" />
<st:attribute name="useKeyboardShortcut" />
</st:documentation>

<div class="jenkins-search ${attrs.clazz}">
Expand All @@ -46,8 +47,10 @@ THE SOFTWARE.
autocorrect="off"
autocapitalize="off"
spellcheck="false" />
<div class="jenkins-search__shortcut" tooltip="Press / on your keyboard to focus">
<l:icon src="symbol-search-shortcut" />
</div>
<j:if test="${attrs.useKeyboardShortcut != 'false'}">
<div class="jenkins-search__shortcut" tooltip="${%Press / on your keyboard to focus}">
<l:icon src="symbol-search-shortcut" />
</div>
</j:if>
</div>
</j:jelly>

0 comments on commit 9bec29f

Please sign in to comment.