Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordmills2013-02-27 19:23:23 +0000
committerdmills2013-02-27 19:23:23 +0000
commitfba07b48c4571598db9a64f9996bd83683c80177 (patch)
treed81312c036a2311517d4a718f5ca69734cf31434 /hudson-core/src/main/resources/lib
parent4ba3f62e51d09ae2c211fc72276260fda79b4cd6 (diff)
downloadorg.eclipse.hudson.core-privacy_decoration.tar.gz
org.eclipse.hudson.core-privacy_decoration.tar.xz
org.eclipse.hudson.core-privacy_decoration.zip
Implemented Instance Tag functionality for enhancement: 401754privacy_decoration
Diffstat (limited to 'hudson-core/src/main/resources/lib')
-rw-r--r--hudson-core/src/main/resources/lib/layout/layout.jelly13
-rw-r--r--hudson-core/src/main/resources/lib/layout/layout.properties1
2 files changed, 11 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}"/>
diff --git a/hudson-core/src/main/resources/lib/layout/layout.properties b/hudson-core/src/main/resources/lib/layout/layout.properties
index 6a26091e..52c3c0bb 100644
--- a/hudson-core/src/main/resources/lib/layout/layout.properties
+++ b/hudson-core/src/main/resources/lib/layout/layout.properties
@@ -17,3 +17,4 @@
searchBox.url=http://wiki.hudson-ci.org/display/HUDSON/Search+Box
logout=log out
poweredBy=Powered by Hudson Open Source Continuous Integration Server from the Eclipse Foundation
+instance=Instance

Back to the top