Author: simonetripodi
Date: Fri Dec 30 22:46:49 2011
New Revision: 1225958

URL: http://svn.apache.org/viewvc?rev=1225958&view=rev
Log:
[MSKINS-23] Provide backgrounds for MOJOs status - backgrounds contributed by 
Carlos Villaronga

Added:
    maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/
    maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml   (with props)
    maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/
    maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/
    maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/
    
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm  
 (with props)
    maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml   
(with props)
    maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/
    
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/graveyard.png
   (with props)
    
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/pre-release.png
   (with props)
    
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/sandbox.png
   (with props)
    maven/skins/trunk/maven-fluido-skin/src/media/
    maven/skins/trunk/maven-fluido-skin/src/media/graveyard.svg   (with props)
    maven/skins/trunk/maven-fluido-skin/src/media/pre-release.svg   (with props)
    maven/skins/trunk/maven-fluido-skin/src/media/sandbox.svg   (with props)
Modified:
    maven/skins/trunk/maven-fluido-skin/pom.xml
    
maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm

Modified: maven/skins/trunk/maven-fluido-skin/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/pom.xml?rev=1225958&r1=1225957&r2=1225958&view=diff
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/pom.xml (original)
+++ maven/skins/trunk/maven-fluido-skin/pom.xml Fri Dec 30 22:46:49 2011
@@ -33,6 +33,13 @@
     built on top of Twitter's bootstrap.</description>
   <inceptionYear>2011</inceptionYear>
 
+  <contributors>
+    <contributor>
+      <name>Carlos Villaronga</name>
+      <email>cvillaronga AT gmail DOT com</email>
+    </contributor>
+  </contributors>
+
   <scm>
     
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/skins/trunk/maven-fluido-skin</connection>
     
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/skins/trunk/maven-fluido-skin</developerConnection>

Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml?rev=1225958&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml (added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml Fri Dec 30 
22:46:49 2011
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.maven</groupId>
+    <artifactId>maven-parent</artifactId>
+    <version>21</version>
+  </parent>
+
+  <groupId>org.apache.maven.skins.its</groupId>
+  <artifactId>@project.artifactId@-mskins-23</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>@project.name@ IT, MSKINS-23</name>
+  <url>http://maven.apache.org/skins/@project.artifactId@/mskins-23/</url>
+
+  <properties>
+    <skinName>@project.name@</skinName>
+    <skinDescription>@project.description@</skinDescription>
+    <skinGroupId>@project.groupId@</skinGroupId>
+    <skinArtifactId>@project.artifactId@</skinArtifactId>
+    <skinVersion>@project.version@</skinVersion>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-site-plugin</artifactId>
+        <version>3.0</version>
+      </plugin>
+    </plugins>
+  </build>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-project-info-reports-plugin</artifactId>
+        <version>2.4</version>
+        <configuration>
+          <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+          <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+        </configuration>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>index</report>
+              <report>summary</report>
+              <report>license</report>
+              <report>project-team</report>
+              <report>scm</report>
+              <report>issue-tracking</report>
+              <report>mailing-list</report>
+              <report>dependencies</report>
+              <report>cim</report>
+              <report>plugin-management</report>
+              <report>plugins</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
+
+</project>

Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm?rev=1225958&view=auto
==============================================================================
--- 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm 
(added)
+++ 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm 
Fri Dec 30 22:46:49 2011
@@ -0,0 +1,16 @@
+ ------
+ ${project.name}
+ ------
+ Simo
+ ------
+ 2011-12-26
+ ------
+
+${project.name}
+
+ This is a test for ${skinName} with MOJOs profiles enabled.
+ ${skinDescription}
+
+* Actual configuration
+
+%{snippet|id=skin-custom-config|file=${project.basedir}/src/site/site.xml}

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml?rev=1225958&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml 
(added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml Fri 
Dec 30 22:46:49 2011
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ -->
+
+<project xmlns="http://maven.apache.org/DECORATION/1.1.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 
http://maven.apache.org/xsd/decoration-1.1.0.xsd";
+  name="${skinName}">
+
+  <skin>
+    <groupId>${skinGroupId}</groupId>
+    <artifactId>${skinArtifactId}</artifactId>
+    <version>${skinVersion}</version>
+  </skin>
+
+  <!-- START SNIPPET: skin-custom-config -->
+  <custom>
+    <fluidoSkin>
+      <profile>sandbox</profile>
+    </fluidoSkin>
+  </custom>
+  <!-- END SNIPPET: skin-custom-config -->
+
+  <publishDate format="yyyy-MM-dd" position="right" />
+  <version position="right" />
+
+  <body>
+    <breadcrumbs>
+      <item name="skins" href="/skins/"/>
+      <item name="${skinArtifactId}" href="/skins/${skinArtifactId}/"/>
+    </breadcrumbs>
+
+    <menu name="Overview">
+      <item name="Introduction" href="index.html"/>
+    </menu>
+
+    <menu ref="reports"/>
+
+    <footer>
+      <div class="row span16">Apache Maven, Apache @project.name@, Apache, the 
Apache feather logo, and the Apache Maven project logos are trademarks of The 
Apache Software Foundation.
+      All other marks mentioned may be trademarks or registered trademarks of 
their respective owners.</div>
+      <div class="row span16">
+        <div class="span4">
+          <address>
+            <strong>The Apache Software Foundation</strong><br/>
+            <i>Dept. 9660</i><br/>
+            <i>Los Angeles, CA 90084-9660</i><br/>
+            <i>USA</i><br/>
+            <abbr title="Fax">Fax:</abbr> <i>+1.919.573.9199</i>
+          </address>
+        </div>
+        <div class="span4">
+          <address>
+            <strong>The Apache Software Foundation</strong><br/>
+            <i>1901 Munsey Drive</i><br/>
+            <i>Forest Hill, MD 21050-2747</i><br/>
+            <i>USA</i><br/>
+            <a href="mailto:apache at apache dot org">apache at apache dot 
org</a>
+          </address>
+        </div>
+      </div>
+    </footer>
+  </body>
+
+</project>
\ No newline at end of file

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/it/mskins-23/src/site/site.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: 
maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm?rev=1225958&r1=1225957&r2=1225958&view=diff
==============================================================================
--- 
maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm 
(original)
+++ 
maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm 
Fri Dec 30 22:46:49 2011
@@ -580,6 +580,20 @@
   #end
 #end
 ##
+#macro ( prjProfile )
+  #if ( $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'profile' ) )
+
+    #set ( $profile = $decoration.custom.getChild( 'fluidoSkin' ).getChild( 
'profile' ).getValue() )
+
+    #if ( $profile.equalsIgnoreCase( "graveyard" )
+          || $profile.equalsIgnoreCase( "pre-release" )
+          || $profile.equalsIgnoreCase( "sandbox" ) )
+      <style>body{background-image: 
url('$relativePath/images/profiles/${profile}.png');}</style>
+    #end
+
+  #end
+#end
+##
 <html xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) 
xml:lang="$locale.language" lang="$locale.language"#end>
   <head>
     <meta http-equiv="Content-Type" content="text/html; 
charset=${outputEncoding}" />
@@ -596,6 +610,8 @@
     <style>body{padding-top: 20px;}</style>
     #end
 
+    #prjProfile()
+
     <script type="text/javascript" 
src="$relativePath/js/apache-maven-fluido.min.js"></script>
 
     #if ( $decoration.body.head )

Added: 
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/graveyard.png
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/graveyard.png?rev=1225958&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/graveyard.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/pre-release.png
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/pre-release.png?rev=1225958&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/pre-release.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/sandbox.png
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/sandbox.png?rev=1225958&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
maven/skins/trunk/maven-fluido-skin/src/main/resources/images/profiles/sandbox.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: maven/skins/trunk/maven-fluido-skin/src/media/graveyard.svg
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/media/graveyard.svg?rev=1225958&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/skins/trunk/maven-fluido-skin/src/media/graveyard.svg
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: maven/skins/trunk/maven-fluido-skin/src/media/graveyard.svg
------------------------------------------------------------------------------
    svn:mime-type = image/svg+xml

Added: maven/skins/trunk/maven-fluido-skin/src/media/pre-release.svg
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/media/pre-release.svg?rev=1225958&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/skins/trunk/maven-fluido-skin/src/media/pre-release.svg
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: maven/skins/trunk/maven-fluido-skin/src/media/pre-release.svg
------------------------------------------------------------------------------
    svn:mime-type = image/svg+xml

Added: maven/skins/trunk/maven-fluido-skin/src/media/sandbox.svg
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/media/sandbox.svg?rev=1225958&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/skins/trunk/maven-fluido-skin/src/media/sandbox.svg
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: maven/skins/trunk/maven-fluido-skin/src/media/sandbox.svg
------------------------------------------------------------------------------
    svn:mime-type = image/svg+xml


Reply via email to