Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordmills2013-02-27 14:23:23 -0500
committerdmills2013-02-27 14:23:23 -0500
commitfba07b48c4571598db9a64f9996bd83683c80177 (patch)
treed81312c036a2311517d4a718f5ca69734cf31434 /hudson-core/src/main/resources
parent4ba3f62e51d09ae2c211fc72276260fda79b4cd6 (diff)
downloadorg.eclipse.hudson.core-fba07b48c4571598db9a64f9996bd83683c80177.tar.gz
org.eclipse.hudson.core-fba07b48c4571598db9a64f9996bd83683c80177.tar.xz
org.eclipse.hudson.core-fba07b48c4571598db9a64f9996bd83683c80177.zip
Implemented Instance Tag functionality for enhancement: 401754privacy_decoration
Diffstat (limited to 'hudson-core/src/main/resources')
-rw-r--r--hudson-core/src/main/resources/hudson/model/Hudson/configure.jelly3
-rw-r--r--hudson-core/src/main/resources/lib/layout/layout.jelly13
-rw-r--r--hudson-core/src/main/resources/lib/layout/layout.properties1
3 files changed, 14 insertions, 3 deletions
diff --git a/hudson-core/src/main/resources/hudson/model/Hudson/configure.jelly b/hudson-core/src/main/resources/hudson/model/Hudson/configure.jelly
index 96fb8beb..c40b6793 100644
--- a/hudson-core/src/main/resources/hudson/model/Hudson/configure.jelly
+++ b/hudson-core/src/main/resources/hudson/model/Hudson/configure.jelly
@@ -37,6 +37,9 @@
<f:entry title="${%Home directory}" help="/help/system-config/homeDirectory.html">
${it.rootDir}
</f:entry>
+ <f:entry title="${%Instance Tag}" help="/help/system-config/instanceTag.html">
+ <f:textbox name="instance_tag" value="${it.instanceTag}" />
+ </f:entry>
<f:entry title="${%System Message}" help="/help/system-config/systemMessage.html">
<f:textarea name="system_message" value="${it.systemMessage}" />
</f:entry>
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