You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by br...@apache.org on 2010/12/09 13:51:06 UTC
svn commit: r1043948 - in /archiva/branches/archiva-1.3.x/archiva-modules:
archiva-base/archiva-configuration/
archiva-base/archiva-configuration/src/main/mdo/
archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/
archiva-web/archiva-webap...
Author: brett
Date: Thu Dec 9 12:51:06 2010
New Revision: 1043948
URL: http://svn.apache.org/viewvc?rev=1043948&view=rev
Log:
correctly acknowledge September 19
Added:
archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep-logo.png (with props)
archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep.png (with props)
Modified:
archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/pom.xml
archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp
archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/css/maven-base.css
Modified: archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/pom.xml
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/pom.xml?rev=1043948&r1=1043947&r2=1043948&view=diff
==============================================================================
--- archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/pom.xml (original)
+++ archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/pom.xml Thu Dec 9 12:51:06 2010
@@ -95,7 +95,7 @@
</execution>
</executions>
<configuration>
- <version>1.2.0</version>
+ <version>1.3.0</version>
<models>
<model>src/main/mdo/configuration.mdo</model>
</models>
Modified: archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo?rev=1043948&r1=1043947&r2=1043948&view=diff
==============================================================================
--- archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo (original)
+++ archiva/branches/archiva-1.3.x/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo Thu Dec 9 12:51:06 2010
@@ -1134,6 +1134,12 @@
<type>boolean</type>
<defaultValue>true</defaultValue>
</field>
+ <field>
+ <name>disableEasterEggs</name>
+ <version>1.3.0+</version>
+ <type>boolean</type>
+ <defaultValue>false</defaultValue>
+ </field>
</fields>
</class>
Modified: archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp?rev=1043948&r1=1043947&r2=1043948&view=diff
==============================================================================
--- archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp (original)
+++ archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/components/companyLogo.jsp Thu Dec 9 12:51:06 2010
@@ -40,7 +40,12 @@
</c:when>
<c:otherwise>
<my:currentWWUrl action="index" namespace="/">
+ <c:if test="${is19Sep}">
+ <img src="<c:url value='/images/19Sep-logo.png' />"/>
+ </c:if>
+ <c:if test="${!is19Sep}">
<img src="<c:url value='/images/archiva.png' />"/>
+ </c:if>
</my:currentWWUrl>
</c:otherwise>
</c:choose>
Modified: archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp?rev=1043948&r1=1043947&r2=1043948&view=diff
==============================================================================
--- archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp (original)
+++ archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp Thu Dec 9 12:51:06 2010
@@ -44,7 +44,31 @@
<decorator:head />
</head>
-<body onload="<decorator:getProperty property="body.onload" />" 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" );
+ }
+%>
+
+<s:if test="%{#application['uiOptions'].disableEasterEggs}">
+ <c:remove var="is19Sep" scope="request" />
+</s:if>
+
+<body onload="<decorator:getProperty property="body.onload" />" class="composite"
+ <c:if test="${is19Sep}">
+ style="background: url('<c:url value="/images/19Sep.png"/>') no-repeat bottom right"
+ </c:if>
+>
<div id="breadcrumbs">
<div class="xright">
<%@ include file="/WEB-INF/jsp/redback/include/securityLinks.jsp" %>
@@ -173,18 +197,9 @@
<hr/>
</div>
-<%
- int inceptionYear = 2005;
- int currentYear = Calendar.getInstance().get( Calendar.YEAR );
- String copyrightRange = String.valueOf( inceptionYear );
- if ( inceptionYear != currentYear )
- {
- copyrightRange = copyrightRange + "-" + String.valueOf( currentYear );
- }
-%>
<div id="footer">
<div class="xleft">
- <a target="_blank" href="http://archiva.apache.org/">Apache Archiva <%= ArchivaVersion.getVersion()%></a>
+ <a target="_blank" href="http://archiva.apache.org/">Apache Ar<c:if test="${is19Sep}">rr</c:if>chiva <%= ArchivaVersion.getVersion()%></a>
</div>
<div class="xright">
Copyright © <%= copyrightRange%> <a target="_blank" href="http://www.apache.org/">The Apache Software Foundation</a>
Modified: archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/css/maven-base.css
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/css/maven-base.css?rev=1043948&r1=1043947&r2=1043948&view=diff
==============================================================================
--- archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/css/maven-base.css (original)
+++ archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/css/maven-base.css Thu Dec 9 12:51:06 2010
@@ -93,6 +93,7 @@ div.clear hr {
#bodyColumn {
margin-right: 1.5em;
margin-left: 197px;
+ min-height: 575px
}
#legend {
Added: archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep-logo.png
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep-logo.png?rev=1043948&view=auto
==============================================================================
Binary file - no diff available.
Propchange: archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep-logo.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep.png
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep.png?rev=1043948&view=auto
==============================================================================
Binary file - no diff available.
Propchange: archiva/branches/archiva-1.3.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/19Sep.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream