Skip to content

Commit b8691d8

Browse files
committed
Add Up/Home link to the top of the HTML doc output.
Backpatch to 9.0.X and 9.1.X.
1 parent 8c8ba6d commit b8691d8

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

doc/src/sgml/stylesheet.dsl

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284

285285
;; Customization of header, add title attributes (overrides
286286
;; dbcommon.dsl)
287-
(define (default-header-nav-tbl-ff elemnode prev next prevsib nextsib)
287+
(define (default-header-nav-tbl-ff elemnode prev next)
288288
(let* ((r1? (nav-banner? elemnode))
289289
(r1-sosofo (make element gi: "TR"
290290
(make element gi: "TH"
@@ -298,8 +298,6 @@
298298
(nav-banner elemnode)))))
299299
(r2? (or (not (node-list-empty? prev))
300300
(not (node-list-empty? next))
301-
(not (node-list-empty? prevsib))
302-
(not (node-list-empty? nextsib))
303301
(nav-context? elemnode)))
304302
(r2-sosofo (make element gi: "TR"
305303
(make element gi: "TD"
@@ -323,15 +321,9 @@
323321
(list "WIDTH" "10%")
324322
(list "ALIGN" "left")
325323
(list "VALIGN" "top"))
326-
(if (node-list-empty? prevsib)
327-
(make entity-ref name: "nbsp")
328-
(make element gi: "A"
329-
attributes: (list
330-
(list "TITLE" (element-title-string prevsib))
331-
(list "HREF"
332-
(href-to
333-
prevsib)))
334-
(gentext-nav-prev-sibling prevsib))))
324+
(if (nav-up? elemnode)
325+
(nav-up elemnode)
326+
(nav-home-link elemnode)))
335327
(make element gi: "TD"
336328
attributes: (list
337329
(list "WIDTH" "60%")
@@ -340,21 +332,7 @@
340332
(nav-context elemnode))
341333
(make element gi: "TD"
342334
attributes: (list
343-
(list "WIDTH" "10%")
344-
(list "ALIGN" "right")
345-
(list "VALIGN" "top"))
346-
(if (node-list-empty? nextsib)
347-
(make entity-ref name: "nbsp")
348-
(make element gi: "A"
349-
attributes: (list
350-
(list "TITLE" (element-title-string nextsib))
351-
(list "HREF"
352-
(href-to
353-
nextsib)))
354-
(gentext-nav-next-sibling nextsib))))
355-
(make element gi: "TD"
356-
attributes: (list
357-
(list "WIDTH" "10%")
335+
(list "WIDTH" "20%")
358336
(list "ALIGN" "right")
359337
(list "VALIGN" "top"))
360338
(if (node-list-empty? next)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy