Add support for the universal edit button
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 21 Jun 2008 20:56:47 +0000 (16:56 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 21 Jun 2008 20:56:47 +0000 (16:56 -0400)
<http://universaleditbutton.org/>

Not forcing a rebuild on upgrade just for this.

debian/changelog
templates/page.tmpl

index bb501b9d87551b8977163b6f96ce319eaf67c794..251761633530e1e98adc59a617f3bd75212d4d7d 100644 (file)
@@ -17,6 +17,8 @@ ikiwiki (2.51) UNRELEASED; urgency=low
     Closes: #486592
   * creole: New plugin from Bernd Zeimetz. Closes: #486930
   * aggregate: Add template parameter.
+  * Add support for the universal edit button <http://universaleditbutton.org/>
+    (To get this on all pages of an exiting wiki, rebuild the wiki.)
 
  -- Joey Hess <joeyh@debian.org>  Sun, 15 Jun 2008 15:03:33 -0400
 
index b903adb19a4744021907ac47e4cc280129209e57..166f3c5604c2fc91bade3963600ae84917fd8b97 100644 (file)
@@ -9,6 +9,9 @@
 </TMPL_IF>
 <link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" />
 <link rel="stylesheet" href="<TMPL_VAR BASEURL>local.css" type="text/css" />
+<TMPL_IF NAME="EDITURL">
+<link rel="alternate" type="application/x-wiki" title="Edit this page" href="<TMPL_VAR EDITURL>" />
+</TMPL_IF>
 <TMPL_IF NAME="FEEDLINKS"><TMPL_VAR FEEDLINKS></TMPL_IF>
 <TMPL_IF NAME="META"><TMPL_VAR META></TMPL_IF>
 </head>