Skip to content

Commit 0fd051c

Browse files
committed
fix(page): add version popover to breadcrumbs home
close #157
1 parent 2b357af commit 0fd051c

File tree

1 file changed

+3
-1
lines changed
  • src/main/xar-resources/modules

1 file changed

+3
-1
lines changed

src/main/xar-resources/modules/app.xql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module namespace app = "http://exist-db.org/apps/docs/app";
55
import module namespace templates = "http://exist-db.org/xquery/templates";
66
import module namespace config = "http://exist-db.org/xquery/apps/config" at "config.xqm";
77

8+
declare namespace expath = "http://expath.org/ns/pkg";
9+
810
declare function app:bread-nav($node as node(), $model as map(*)) as element(nav) {
911
let $uri := tokenize(request:get-uri(), '/')[position() = last()]
1012
let $file :=
@@ -16,7 +18,7 @@ declare function app:bread-nav($node as node(), $model as map(*)) as element(nav
1618
return
1719
<nav aria-label="breadcrumb">
1820
<ol class="breadcrumb">
19-
<li class="breadcrumb-item"><a href="documentation">Home</a></li>
21+
<li class="breadcrumb-item"><a href="documentation" data-toggle="popover" title="Version: {data($config:expath-descriptor//@version)}">Home</a></li>
2022
<li class="breadcrumb-item"><a href="#">{$file}</a></li>
2123
</ol>
2224
</nav>

0 commit comments

Comments
 (0)