]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/provide_inline_diffs_in_recentchanges.mdwn
make layers an array
[ikiwiki.git] / doc / todo / provide_inline_diffs_in_recentchanges.mdwn
1 [[!template  id=gitbranch branch=anarcat/inline_diffs author="[[anarcat]]"]]
2
3 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]]
4
5 > The diffs are actually there, enabled by the [[plugins/recentchangesdiff]]
6 > plugin, but they are hidden in the XHTML version by the stylesheet.
7 > You might try a user stylesheet with `div.diff { display: block }`.
8 > --[[JasonBlevins]]
9
10 > > I have implemented this in a branch in my repository (see the side box).
11 > > 
12 > > Unfortunately it has some issues:
13 > > 
14 > > 1. <del>it assumes the toggle.js code is loaded somehow</del> - now loaded manually
15 > > 2. <del>if the toggle code isn't loaded the diffs are displayed (which is arguably better than showing nothing since we ship the diff to the UA anyways...)</del> - i actually think that's fine
16 > > 3. <del>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</del> fixed!
17 > > 4. <del>if the diffurl parameter is set in the template, we'd actually see two sets of glasses, which is silly.</del> - just added a tmp_unless to fix this.
18 > >
19 > > 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.
20 > >
21 > > -- [[anarcat]] 2012-03-03
22
23 > > > I have pushed a new version of this patch to my branch, which fixes all the above issues. I think this is ready to be merged now. -- [[anarcat]] 2012-07-19
24
25 >>>> [[done]] --[[Joey]] 
26
27 [[!tag wishlist patch]]