Skip to content

Commit 55800b6

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 9c09e7c commit 55800b6

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

doc/src/sgml/stylesheet.dsl

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268

269269
;; Customization of header, add title attributes (overrides
270270
;; dbcommon.dsl)
271-
(define (default-header-nav-tbl-ff elemnode prev next prevsib nextsib)
271+
(define (default-header-nav-tbl-ff elemnode prev next)
272272
(let* ((r1? (nav-banner? elemnode))
273273
(r1-sosofo (make element gi: "TR"
274274
(make element gi: "TH"
@@ -282,8 +282,6 @@
282282
(nav-banner elemnode)))))
283283
(r2? (or (not (node-list-empty? prev))
284284
(not (node-list-empty? next))
285-
(not (node-list-empty? prevsib))
286-
(not (node-list-empty? nextsib))
287285
(nav-context? elemnode)))
288286
(r2-sosofo (make element gi: "TR"
289287
(make element gi: "TD"
@@ -307,15 +305,9 @@
307305
(list "WIDTH" "10%")
308306
(list "ALIGN" "left")
309307
(list "VALIGN" "top"))
310-
(if (node-list-empty? prevsib)
311-
(make entity-ref name: "nbsp")
312-
(make element gi: "A"
313-
attributes: (list
314-
(list "TITLE" (element-title-string prevsib))
315-
(list "HREF"
316-
(href-to
317-
prevsib)))
318-
(gentext-nav-prev-sibling prevsib))))
308+
(if (nav-up? elemnode)
309+
(nav-up elemnode)
310+
(nav-home-link elemnode)))
319311
(make element gi: "TD"
320312
attributes: (list
321313
(list "WIDTH" "60%")
@@ -324,29 +316,15 @@
324316
(nav-context elemnode))
325317
(make element gi: "TD"
326318
attributes: (list
327-
(list "WIDTH" "10%")
328-
(list "ALIGN" "right")
329-
(list "VALIGN" "top"))
330-
(if (node-list-empty? nextsib)
331-
(make entity-ref name: "nbsp")
332-
(make element gi: "A"
333-
attributes: (list
334-
(list "TITLE" (element-title-string nextsib))
335-
(list "HREF"
336-
(href-to
337-
nextsib)))
338-
(gentext-nav-next-sibling nextsib))))
339-
(make element gi: "TD"
340-
attributes: (list
341-
(list "WIDTH" "10%")
319+
(list "WIDTH" "20%")
342320
(list "ALIGN" "right")
343321
(list "VALIGN" "top"))
344322
(if (node-list-empty? next)
345323
(make entity-ref name: "nbsp")
346324
(make element gi: "A"
347325
attributes: (list
348326
(list "TITLE" (element-title-string next))
349-
(list "HREF"
327+
(list "HREF"
350328
(href-to
351329
next))
352330
(list "ACCESSKEY"

0 commit comments

Comments
 (0)