Author: rgardler
Date: Sat Dec 25 14:45:14 2004
New Revision: 123347

URL: http://svn.apache.org/viewcvs?view=rev&rev=123347
Log:
link back to index page and text description of links to smaller/larger pictures
Modified:
   
forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/resources/stylesheets/galleryPicture.xsl
   forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/status.xml

Modified: 
forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/resources/stylesheets/galleryPicture.xsl
Url: 
http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/resources/stylesheets/galleryPicture.xsl?view=diff&rev=123347&p1=forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/resources/stylesheets/galleryPicture.xsl&r1=123346&p2=forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/resources/stylesheets/galleryPicture.xsl&r2=123347
==============================================================================
--- 
forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/resources/stylesheets/galleryPicture.xsl
       (original)
+++ 
forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/resources/stylesheets/galleryPicture.xsl
       Sat Dec 25 14:45:14 2004
@@ -31,6 +31,26 @@
        <body>
          <table>
            <tr align="center" valign="middle">
+        <td colspan="3">
+          <xsl:variable name="indexRoundedNum"><xsl:value-of 
select="round($pos div 20)"/></xsl:variable>
+          <xsl:variable name="indexModNum"><xsl:value-of select="$pos mod 
20"/></xsl:variable>
+          <xsl:variable name="indexNum">
+            <xsl:choose>
+              <xsl:when test="$indexModNum = 0 or $indexModNum >= 10">
+                <xsl:value-of select="$indexRoundedNum"/>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:value-of select="$indexRoundedNum + 1"/>
+              </xsl:otherwise>
+            </xsl:choose>
+          </xsl:variable>
+          <a>
+            <xsl:attribute name="href">index_<xsl:value-of 
select="$indexNum"/>.html</xsl:attribute>
+            Index Page
+          </a>
+        </td>
+      </tr>
+           <tr align="center" valign="middle">
              <td>
                <xsl:if test="$pos &gt; 1">
                  <a>
@@ -42,7 +62,8 @@
             <xsl:attribute name="href">fullPic_<xsl:value-of select="$pos - 
1"/>.html</xsl:attribute>
           </xsl:otherwise>
         </xsl:choose>
-                   <img src="images/leftarrow.png"/>
+                   <img src="images/leftarrow.png"/><br/>
+        Previous Picture
                  </a> 
                </xsl:if>
              </td>
@@ -51,13 +72,15 @@
                  <xsl:when test="$big = 0">
                    <a>
           <xsl:attribute name="href">fullPic_<xsl:value-of 
select="$pos"/>.html</xsl:attribute>
-                     <img src="small/[EMAIL PROTECTED]" />
+                     <img src="small/[EMAIL PROTECTED]" /><br/>
+          Click to View Largest Picture
                    </a>
                  </xsl:when>
                  <xsl:otherwise>
                    <a>
           <xsl:attribute name="href">pic_<xsl:value-of 
select="$pos"/>.html</xsl:attribute>
-                     <img src="big/[EMAIL PROTECTED]" />
+                     <img src="big/[EMAIL PROTECTED]" /><br/>
+          Click to View Smaller Picture
                    </a>
                  </xsl:otherwise>
                </xsl:choose> 
@@ -73,7 +96,8 @@
             <xsl:attribute name="href">fullPic_<xsl:value-of select="$pos + 
1"/>.html</xsl:attribute>
           </xsl:otherwise>
         </xsl:choose>
-        <img src="images/rightarrow.png"/>
+        <img src="images/rightarrow.png"/><br/>
+        Next Picture
       </a>
                </xsl:if>
              </td>

Modified: 
forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/status.xml
Url: 
http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/status.xml?view=diff&rev=123347&p1=forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/status.xml&r1=123346&p2=forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/status.xml&r2=123347
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/status.xml     
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.photoGallery/status.xml     
Sat Dec 25 14:45:14 2004
@@ -31,6 +31,10 @@
       automatically be used for entries of type <foo>. -->
 
       
+      <action dev="RDG" type="add" context="code">
+        Added link back to index page and provide some text for links to next
+        image and larger/smaller image.
+      </action>
       <action dev="RDG" type="update" context="code">
         Changed method of identifying pictures, it no longer users request
         parameters, therefore it will work in a statically generated site as

Reply via email to