diff options
author | Tom <tw201207@gmail.com> | 2014-11-11 07:52:15 +0100 |
---|---|---|
committer | Tom <tw201207@gmail.com> | 2014-11-11 08:00:30 +0100 |
commit | 7dd99fe7474604f314c01bcd4123eb7cbacfb583 (patch) | |
tree | 84f3b0da388cdc79c2b31e6fab5619fc1617e455 /src/main/java/com/gitblit/models/Activity.java | |
parent | 8cd4feca58b55f311a543c744777e930c4f4b34a (diff) | |
download | gitblit-7dd99fe7474604f314c01bcd4123eb7cbacfb583.tar.gz gitblit-7dd99fe7474604f314c01bcd4123eb7cbacfb583.zip |
Image diffs
Ticket 88: https://dev.gitblit.com/tickets/gitblit.git/88
Based on Lea Verou's pure CSS slider:
http://lea.verou.me/2014/07/image-comparison-slider-with-pure-css/
* Add a callback interface, pass it through DiffUtils to the
GitBlitDiffFormatter. Is needed because the rendering needs access
to the repositoryName and other things that are known only at higher
levels.
* New class ImageDiffHandler responsible for rendering an image diff.
Called for all binary diffs, doesn't do anything if it's not an
image. HTML is generated via JSoup: no worries about forgetting to
close a tag, not about HTML escaping, nor about XSS.
* The 3 diff pages set up such an ImageDIffHandler and pass it along.
* CSS changes: from Lea Verou, with some minor improvements.
I think in the long run there'll be no way around rewriting the
HTML diff formatter from scratch, not using the standard JGit
DiffFormatter at all.
Diffstat (limited to 'src/main/java/com/gitblit/models/Activity.java')
0 files changed, 0 insertions, 0 deletions