]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Make the comments link always appear under "See also" in the right panel of each...
authorLuca Toscano <elukey@apache.org>
Fri, 29 Apr 2016 06:31:53 +0000 (06:31 +0000)
committerLuca Toscano <elukey@apache.org>
Fri, 29 Apr 2016 06:31:53 +0000 (06:31 +0000)
Previously it was inconsistently placed right below the last section on top.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1741557 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/manualpage.xsl
docs/manual/style/xsl/synopsis.xsl

index 4f1073aa1068a62f91d52065595f4b07b382acda..32a3e05b8262261e1436aa8f70357d6b16671e44 100644 (file)
           <xsl:attribute name="class">no-sidebar</xsl:attribute>
         </xsl:if>
 
-        <xsl:call-template name="top"/>          
+        <xsl:call-template name="top"/>
 
         <div id="page-content">
             <xsl:call-template name="retired" />
 
-            <div id="preamble">        
+            <div id="preamble">
                 <h1>
                     <xsl:value-of select="title"/>
                 </h1>&lf;
@@ -52,7 +52,7 @@
 
                 <xsl:apply-templates select="summary" />
             </div>&lf; <!-- /#preamble -->
-          
+
             <xsl:if test="(not($is-chm) and count(section) > 1) or seealso">
                 <div id="quickview">
                     <xsl:if test="not($is-chm) and count(section) > 1">
                         </ul>
                     </xsl:if>
 
-                    <xsl:if test="seealso">
+                     <!-- The seealso section shows links to related documents
+                         explicitly set in .xml docs or simply the comments. -->
+                    <xsl:if test="seealso or not($is-chm or $is-zip or
+                                                $metafile/basename = 'index')">
                         <h3>
                             <xsl:value-of
                                 select="$message[@id='seealso']" />
                                 <xsl:apply-templates />
                             </li>
                         </xsl:for-each>
+                        <xsl:if test="not($is-chm or $is-zip or $metafile/basename = 'index')">
+                            <li><a href="#comments_section"><xsl:value-of
+                                        select="$message[@id='comments']" /></a>
+                            </li>
+                        </xsl:if>
                         </ul>
                     </xsl:if>
-                    <xsl:if test="not($is-chm or $is-zip or $metafile/basename = 'index')">
-                    <ul class="seealso">
-                        <li><a href="#comments_section"><xsl:value-of
-                                select="$message[@id='comments']" /></a>
-                        </li>
-                    </ul>
-                    </xsl:if>
                 </div>&lf; <!-- /#quickview -->
             </xsl:if>
 
index eda684c3b75fa939105bbe50e3b7a675932b91e6..7b3e90e9848a63a5f3a13f0297fae5cab41e3c8d 100644 (file)
                             </a>
                         </li>
                     </ul>
-
-                    <xsl:if test="seealso">
+                    <!-- The seealso section shows links to related documents
+                         explicitly set in .xml docs or simply the comments. -->
+                    <xsl:if test="seealso or not($is-chm or $is-zip or
+                                                $metafile/basename = 'index')">
                         <h3>
                             <xsl:value-of select="$message
                                                   [@id='seealso']" />
                                 <xsl:apply-templates />
                             </li>&lf;
                         </xsl:for-each>
+                        <xsl:if test="not($is-chm or $is-zip or $metafile/basename = 'index')">
+                            <li><a href="#comments_section"><xsl:value-of
+                                    select="$message[@id='comments']" /></a>
+                            </li>
+                        </xsl:if>
                         </ul>
                     </xsl:if>
-                    <xsl:if test="not($is-chm or $is-zip or $metafile/basename = 'index')">
-                    <ul class="seealso">
-                        <li><a href="#comments_section"><xsl:value-of
-                                select="$message[@id='comments']" /></a>
-                        </li>
-                    </ul>
-                    </xsl:if>
                 </div> <!-- /#quickview -->
             </xsl:if>&lf; <!-- have sidebar -->