summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoNavbar.java
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-08-26 16:53:03 +0200
committerDavid A. Madore <david+git@madore.org>2011-08-26 16:53:03 +0200
commit961bdfc66151b9aef46149e4730110ef409e5587 (patch)
tree4b6ad9a0e8253905af8d8f838ef2668fec4bfc0e /org/madore/damlengine/TodoNavbar.java
parent7d3f4db185f5499160228afb228ecac6c6d22476 (diff)
downloaddamlengine-961bdfc66151b9aef46149e4730110ef409e5587.tar.gz
damlengine-961bdfc66151b9aef46149e4730110ef409e5587.tar.bz2
damlengine-961bdfc66151b9aef46149e4730110ef409e5587.zip
Move most of the context to a "general context" substructure.
This is so as to make sure that cloning (which does a shallow copy) gives us references to the same mutable content.
Diffstat (limited to 'org/madore/damlengine/TodoNavbar.java')
-rw-r--r--org/madore/damlengine/TodoNavbar.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org/madore/damlengine/TodoNavbar.java b/org/madore/damlengine/TodoNavbar.java
index 5108a33..4b05180 100644
--- a/org/madore/damlengine/TodoNavbar.java
+++ b/org/madore/damlengine/TodoNavbar.java
@@ -36,20 +36,20 @@ public final class TodoNavbar extends TodoElement {
:"Prof. site"));
p.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "br"));
a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
- a.setAttributeNS(null, "href", (ctx.uriToTop==null)?"./":ctx.uriToTop);
+ a.setAttributeNS(null, "href", (ctx.gc.uriToTop==null)?"./":ctx.gc.uriToTop);
p.appendChild(a);
a.appendChild(ctx.doc.createTextNode(lang.equals("fr")?"Racine du site"
:"Site Root"));
p.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "br"));
a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
- a.setAttributeNS(null, "href", (((ctx.uriToTop==null)?"":ctx.uriToTop)
+ a.setAttributeNS(null, "href", (((ctx.gc.uriToTop==null)?"":ctx.gc.uriToTop)
+"sitemap.html"));
p.appendChild(a);
a.appendChild(ctx.doc.createTextNode(lang.equals("fr")?"Plan du site"
:"Site Map"));
p.appendChild(ctx.doc.createElementNS(DamlEngine.XHTML_NS, "br"));
a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
- a.setAttributeNS(null, "href", (((ctx.uriToTop==null)?"":ctx.uriToTop)
+ a.setAttributeNS(null, "href", (((ctx.gc.uriToTop==null)?"":ctx.gc.uriToTop)
+"weblog/"));
p.appendChild(a);
a.appendChild(ctx.doc.createTextNode("WebLog"));