Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'hudson-core/src/main/resources/lib/layout/layout.jelly')
-rw-r--r--hudson-core/src/main/resources/lib/layout/layout.jelly13
1 files changed, 10 insertions, 3 deletions
diff --git a/hudson-core/src/main/resources/lib/layout/layout.jelly b/hudson-core/src/main/resources/lib/layout/layout.jelly
index 687a585a..c02a0f30 100644
--- a/hudson-core/src/main/resources/lib/layout/layout.jelly
+++ b/hudson-core/src/main/resources/lib/layout/layout.jelly
@@ -66,8 +66,13 @@
<html>
<head>
${h.checkPermission(it,permission)}
+
+ <j:set var="titleSuffix" value=" [Hudson]"/>
+ <j:if test="${!empty(app.instanceTag)}">
+ <j:set var="titleSuffix" value=" [Hudson - ${app.instanceTag}]"/>
+ </j:if>
- <title>${h.appendIfNotNull(title, ' [Hudson]', 'Hudson')}</title>
+ <title>${h.appendIfNotNull(title, titleSuffix, 'Hudson')}</title>
<link rel="shortcut icon" href="${resURL}/favicon.ico" type="image/vnd.microsoft.icon" />
@@ -179,7 +184,7 @@
<table cellpadding="2" cellspacing="3" width="100%" border="0">
<tr>
<td class="instanceTagHeader">
- <!-- For future use -->
+ ${app.instanceTag}
</td>
<td style="vertical-align: middle; text-align: right; padding-right: 1em;">
<!-- search box -->
@@ -305,7 +310,9 @@
</tr>
<tr>
<td d="footer-left-panel" class="footer">
- <!-- For future use -->
+ <j:if test="${!empty(app.instanceTag)}">
+ ${%instance}: <em>${app.instanceTag}</em>
+ </j:if>
</td>
<td id="footer-center-panel" class="footer">
<j:out value="${app.privacyMessage}"/>

Back to the top