-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
/
Copy pathpageHeader.jelly
30 lines (25 loc) · 1.22 KB
/
pageHeader.jelly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:i="jelly:fmt" xmlns:x="jelly:xml">
<st:documentation>
Generates the page header, along with its associated dynamic behaviours.
This tag is used by l:layout and not expected to be used by anyone else,
but it's written as separate tag for better readability of code.
<st:attribute name="title" use="required">
Page title and title attribute for the logo
</st:attribute>
<st:attribute name="logoAlt" use="required">
Alt text for the logo
</st:attribute>
<st:attribute name="searchPlaceholder" use="required">
Placeholder text for the search input
</st:attribute>
<st:attribute name="searchHelpUrl" use="required">
Link value for the help icon on the search box
</st:attribute>
<st:attribute name="logout" use="required">
Text for the logout link
</st:attribute>
</st:documentation>
<j:invokeStatic var="header" className="jenkins.views.Header" method="get"/>
<st:include it="${header}" page="headerContent.jelly"/>
</j:jelly>