From: Brett Porter
Date: Thu, 9 Dec 2010 12:51:06 +0000 (+0000)
Subject: correctly acknowledge September 19
X-Git-Tag: archiva-1.3.3~10
X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=90c092594b7119ab2e84b5fcdae31db8ebcbb68a;p=archiva.git
correctly acknowledge September 19
Image is derived from http://commons.wikimedia.org/wiki/File:Piratey,_vector_version.svg, which is in the public domain
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.3.x@1043948 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/archiva-modules/archiva-base/archiva-configuration/pom.xml b/archiva-modules/archiva-base/archiva-configuration/pom.xml
index ccb52842c..f4ef54f0c 100644
--- a/archiva-modules/archiva-base/archiva-configuration/pom.xml
+++ b/archiva-modules/archiva-base/archiva-configuration/pom.xml
@@ -95,7 +95,7 @@
- 1.2.0
+ 1.3.0
src/main/mdo/configuration.mdo
diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
index 0187601c2..b10ac2ed3 100644
--- a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
+++ b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
@@ -1134,6 +1134,12 @@
boolean
true
+
+ disableEasterEggs
+ 1.3.0+
+ boolean
+ false
+
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp
index 9eb2864ce..23fae758a 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp
@@ -40,7 +40,12 @@
+
+
+
+
+
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
index a2c3fb137..89195fae6 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
@@ -44,7 +44,31 @@
-" class="composite">
+<%
+ int inceptionYear = 2005;
+ Calendar cal = Calendar.getInstance();
+ int currentYear = cal.get( Calendar.YEAR );
+ String copyrightRange = String.valueOf( inceptionYear );
+ if ( inceptionYear != currentYear )
+ {
+ copyrightRange = copyrightRange + "-" + String.valueOf( currentYear );
+ }
+
+ if ( cal.get( Calendar.MONTH ) == Calendar.SEPTEMBER && cal.get( Calendar.DAY_OF_MONTH ) == 19 )
+ {
+ request.setAttribute( "is19Sep", "true" );
+ }
+%>
+
+
+
+
+
+" class="composite"
+
+ style="background: url('') no-repeat bottom right"
+
+>
<%@ include file="/WEB-INF/jsp/redback/include/securityLinks.jsp" %>
@@ -173,18 +197,9 @@
-<%
- int inceptionYear = 2005;
- int currentYear = Calendar.getInstance().get( Calendar.YEAR );
- String copyrightRange = String.valueOf( inceptionYear );
- if ( inceptionYear != currentYear )
- {
- copyrightRange = copyrightRange + "-" + String.valueOf( currentYear );
- }
-%>