Skip to content

Commit

Permalink
Remove headerDocumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
imonteroperez committed Nov 11, 2021
1 parent 63367c7 commit bcea455
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 32 deletions.
3 changes: 0 additions & 3 deletions core/src/main/java/hudson/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@
import jenkins.model.ModelObjectWithContextMenu;
import jenkins.model.SimplePageDecorator;
import jenkins.util.SystemProperties;
import jenkins.views.Header;
import jenkins.views.JenkinsHeader;

import org.apache.commons.jelly.JellyContext;
import org.apache.commons.jelly.JellyTagException;
import org.apache.commons.jelly.Script;
Expand Down

This file was deleted.

26 changes: 25 additions & 1 deletion core/src/main/resources/lib/layout/pageHeader.jelly
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
<?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" required="true">
Page title and title attribute for the logo
</st:attribute>

<st:attribute name="logoAlt" required="true">
Alt text for the logo
</st:attribute>

<st:attribute name="searchPlaceholder" required="true">
Placeholder text for the search input
</st:attribute>

<st:attribute name="searchHelpUrl" required="true">
Link value for the help icon on the search box
</st:attribute>

<st:attribute name="logout" required="true">
Text for the logout link
</st:attribute>
</st:documentation>
<j:invokeStatic var="header" className="jenkins.views.JenkinsHeader" method="get"/>
<st:include it="${header}" page="headerDocumentation.jelly"/>
<st:include it="${header}" page="preHeader.jelly"/>
<st:include it="${header}" page="headerContent.jelly"/>
<st:include it="${header}" page="postHeader.jelly"/>
Expand Down

0 comments on commit bcea455

Please sign in to comment.