You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by vs...@apache.org on 2009/08/29 13:31:21 UTC

svn commit: r809116 - in /maven/doxia/doxia-sitetools/trunk: doxia-decoration-model/src/main/mdo/decoration.mdo doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm

Author: vsiveton
Date: Sat Aug 29 11:31:20 2009
New Revision: 809116

URL: http://svn.apache.org/viewvc?rev=809116&view=rev
Log:
o renamed align field to position

Modified:
    maven/doxia/doxia-sitetools/trunk/doxia-decoration-model/src/main/mdo/decoration.mdo
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm

Modified: maven/doxia/doxia-sitetools/trunk/doxia-decoration-model/src/main/mdo/decoration.mdo
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-decoration-model/src/main/mdo/decoration.mdo?rev=809116&r1=809115&r2=809116&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-decoration-model/src/main/mdo/decoration.mdo (original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-decoration-model/src/main/mdo/decoration.mdo Sat Aug 29 11:31:20 2009
@@ -367,8 +367,8 @@
           <identifier>true</identifier>
         </field>
         <field xml.attribute="true">
-          <name>align</name>
-          <description>The alignement of the image, left or right. Left will be display the image before the menu name, right after.</description>
+          <name>position</name>
+          <description>Where to place the image regarding the displayed name (left or right).</description>
           <version>1.0.1+</version>
           <type>String</type>
           <identifier>true</identifier>
@@ -460,8 +460,8 @@
           <identifier>true</identifier>
         </field>
         <field xml.attribute="true">
-          <name>align</name>
-          <description>The alignement of the image, left or right. Left will be display the image before the menu name, right after.</description>
+          <name>position</name>
+          <description>Where to place the image regarding the displayed name (left or right).</description>
           <version>1.0.1+</version>
           <type>String</type>
           <identifier>true</identifier>

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm?rev=809116&r1=809115&r2=809116&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm (original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm Sat Aug 29 11:31:20 2009
@@ -8,15 +8,15 @@
   #end
 #end
 ##
-#macro ( linkWithImage $href $name $img $align )
+#macro ( linkWithImage $href $name $img $position )
   #if ( ( $href.toLowerCase().startsWith("http") || $href.toLowerCase().startsWith("https") ) )
-    #if ( $align == "left" )
+    #if ( $position == "left" )
     <a href="$href" class="externalLink">$img $name</a>
     #else
     <a href="$href" class="externalLink">$name $img</a>
     #end
   #else
-    #if ( $align == "left" )
+    #if ( $position == "left" )
     <a href="$href">$img $name</a>
     #else
     <a href="$href">$name $img</a>
@@ -123,10 +123,10 @@
   #end
   <li class="$collapse">
   #if ( $item.img )
-    #if( $item.align )
-      #set ( $align = $item.align )
+    #if( $item.position )
+      #set ( $position = $item.position )
     #else
-      #set ( $align = "left" )
+      #set ( $position = "left" )
     #end
 ##
     #if ( ! ( $item.img.toLowerCase().startsWith("http") || $item.img.toLowerCase().startsWith("https") ) )
@@ -162,17 +162,17 @@
 ##
     #set ( $img = '<img class="imageLink"' + $src + $alt + $border + $width + $height + "/>" )
 ##
-    #if ( $align == "left" )
+    #if ( $position == "left" )
       #if ( $alignedFileName == $currentItemHref )
         <strong>$img $item.name</strong>
       #else
-        #linkWithImage( $currentItemHref $item.name $img $align )
+        #linkWithImage( $currentItemHref $item.name $img $position )
       #end
     #else
       #if ( $alignedFileName == $currentItemHref )
         <strong>$item.name $img</strong>
       #else
-        #linkWithImage( $currentItemHref $item.name $img $align )
+        #linkWithImage( $currentItemHref $item.name $img $position )
       #end
     #end
   #else
@@ -198,10 +198,10 @@
   #foreach( $menu in $menus )
     #if ( $menu.name )
       #if ( $menu.img )
-        #if( $menu.align )
-          #set ( $align = $menu.align )
+        #if( $menu.position )
+          #set ( $position = $menu.position )
         #else
-          #set ( $align = "left" )
+          #set ( $position = "left" )
         #end
 ##
         #if ( ! ( $menu.img.toLowerCase().startsWith("http") || $menu.img.toLowerCase().startsWith("https") ) )
@@ -237,7 +237,7 @@
 ##
         #set ( $img = '<img class="imageLink"' + $src + $alt + $border + $width + $height + "/>" )
 ##
-        #if ( $align == "left" )
+        #if ( $position == "left" )
         <h5>$img $menu.name</h5>
         #else
         <h5>$menu.name $img</h5>