summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-10 19:54:38 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-10 19:54:38 -0400
commit2718fc2b2513e47e14e7cf98be6df5608c5e72d8 (patch)
treeedafd3e99a8d173860907acdfad5d1aef01097bf
parent92e39d7391cf5337445ce6129a1d31666c886bf8 (diff)
response
-rw-r--r--doc/bugs/relative_links.mdwn2
-rw-r--r--templates/change.tmpl2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/bugs/relative_links.mdwn b/doc/bugs/relative_links.mdwn
index 1a59f2401..a1dc8f373 100644
--- a/doc/bugs/relative_links.mdwn
+++ b/doc/bugs/relative_links.mdwn
@@ -23,3 +23,5 @@ Errr... That is not a solution, that is a work around. ikiwiki does not hard cod
I noticed the links to the images on <http://ikiwiki.info/recentchanges/> are also absolute, that is <http://ikiwiki.info/wikiicons/diff.png>; this seems surprising, as the change.tmpl file uses &lt;TMPL_VAR BASEURL&gt;
which seems to do the right thing in page.tmpl, but not for change.tmpl. Where is BASEURL set? -- Brian May
+
+> The use of an absolute baseurl in change.tmpl is a special case. --[[Joey]]
diff --git a/templates/change.tmpl b/templates/change.tmpl
index 55aabe201..4a99cf5ff 100644
--- a/templates/change.tmpl
+++ b/templates/change.tmpl
@@ -7,7 +7,7 @@
<span class="desc"><br />Changed pages:</span>
<span class="pagelinks">
<TMPL_LOOP NAME="PAGES">
-<TMPL_IF NAME="DIFFURL"><a href="<TMPL_VAR DIFFURL>"><img alt="diff" src="<TMPL_VAR BASEURL>wikiicons/diff.png" /></a><TMPL_VAR LINK>
+<TMPL_IF NAME="DIFFURL"><a href="<TMPL_VAR DIFFURL>">[[diff|wikiicons/diff.png]]</a><TMPL_VAR LINK>
<TMPL_ELSE>
<TMPL_VAR LINK>
</TMPL_IF>