From: Joey Hess Date: Sat, 3 Mar 2012 21:32:02 +0000 (-0400) Subject: Merge remote-tracking branch 'anarcat/osm-fixes' X-Git-Tag: 3.20120203~90 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/4b3ce9df72f4c2204156d0705937f36b0e08e155?hp=0f7c148494a0b35b6949d2cf0a130e38ecfa8ab9 Merge remote-tracking branch 'anarcat/osm-fixes' --- diff --git a/doc/git.mdwn b/doc/git.mdwn index 36a3d3ad4..1da9fbfbd 100644 --- a/doc/git.mdwn +++ b/doc/git.mdwn @@ -76,8 +76,8 @@ think about merging them. This is recommended. :-) * [[pelle]] `git://github.com/hemmop/ikiwiki.git` * [[chrismgray]] `git://github.com/chrismgray/ikiwiki.git` * [[ttw]] `git://github.com/ttw/ikiwiki.git` +* [[anarcat]] `git://src.anarcat.ath.cx/ikiwiki` ## branches Current branches of ikiwiki are listed on [[branches]]. - diff --git a/doc/todo/provide_inline_diffs_in_recentchanges.mdwn b/doc/todo/provide_inline_diffs_in_recentchanges.mdwn index ba320c0af..ed9dd85fd 100644 --- a/doc/todo/provide_inline_diffs_in_recentchanges.mdwn +++ b/doc/todo/provide_inline_diffs_in_recentchanges.mdwn @@ -1,3 +1,5 @@ +[[!template id=gitbranch branch=anarcat/inline_diffs author="[[anarcat]]"]] + It would rock if I could view diffs from the web without going via feeds. I envision toggle-style buttons on the recentchanges page, or just links to the CGI, which then displays the diff... --[[madduck]] > The diffs are actually there, enabled by the [[plugins/recentchangesdiff]] @@ -5,52 +7,7 @@ It would rock if I could view diffs from the web without going via feeds. I envi > You might try a user stylesheet with `div.diff { display: block }`. > --[[JasonBlevins]] -> > couldn't the diff be displayed as a popup? right now it's too bad because the diff is actually in the page, generated and downloaded, but the user can't see it. I have tried to address the issue by adding stuff to the change.tmpl template, but I may be missing something - and it doesn't quite look right: -> > -> > --- /usr/share/ikiwiki/templates/change.tmpl 2011-09-05 15:14:19.000000000 -0400 -> > +++ templates/change.tmpl 2011-10-11 13:04:37.704346964 -0400 -> > @@ -39,6 +39,7 @@ -> > -> > -> > -> > +[[show diff|wikiicons/diff.png]] -> >
-> >
-> >      
-> > 
-> > There are a few things wrong with this:
-> > 
-> >  1. I don't like the hardcoded javascript in there, we should use [[plugins/toggle]] or something, but i am not sure how to make the this plugin depend on toggle, or if it is desirable. 
-> >  2. it doesn't work at all: first it doesn't actually "toggle" and second the javascript somehow gets filtered out of the resulting HTML so we don't even see it
-> >  3. if the diffurl parameter is set in the template, we'd actually see two sets of glasses, which is silly. i tried moving the diff button upwards into the PAGES loop, but there the diffurls are file-specific, which also seem quite silly
-> > 
-> > I am looking for guidance on how to improve and fix this now. --[[anarcat]] 2011-10-11
-
-> > Here is a better implementation:
-> > [[!format txt """
-diff -u change.tmpl.orig change.tmpl
---- change.tmpl.orig    2012-03-02 23:00:36.706271573 -0500
-+++ change.tmpl 2012-03-02 23:15:56.083573086 -0500
-@@ -28,6 +28,9 @@
- 
- 
- -+ -+[[diff|wikiicons/diff.png]] -+ - [[revert|wikiicons/revert.png]] - -
-@@ -39,7 +42,7 @@ - - - --
-+
-
- 
- 
-"""]] +> > I have implemented this in a branch in my repository (see the side box). > > > > Unfortunately it has some issues: > > @@ -59,5 +16,8 @@ diff -u change.tmpl.orig change.tmpl > > 3. it will show only if there's a revert URL, which is backwards, but otherwise the display is weird, with each button on its own line > > 4. if the diffurl parameter is set in the template, we'd actually see two sets of glasses, which is silly. > > -> > -- [[anarcat]] 2012-03-11 +> > I feel this should nevertheless be implemented because if we're going to compile all this crap in the page anyways and send it to the client, why not allow the user to show it? I also feel that showing it by default is a lesser evil for non-javascript users. +> > +> > -- [[anarcat]] 2012-03-03 + [[!tag wishlist patch]]