From 26716625ae409ef215416f30e9915f20243ce142 Mon Sep 17 00:00:00 2001 From: Diffido Date: Fri, 26 Jan 2018 16:50:49 +0100 Subject: [PATCH] compare two revisions --- dist/history.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dist/history.html b/dist/history.html index b1cda1c..7a5219b 100644 --- a/dist/history.html +++ b/dist/history.html @@ -18,6 +18,10 @@ show entries with no changes +
+ + Compare selected revisions +
@@ -80,6 +84,12 @@ var app = new Vue({ }, toggleShowEmpty: function() { this.updateFilter(); + }, + compareSelected: function() { + if (!(this.oldid && this.diff)) { + return; + } + window.location = '/diff.html?id=' + this.id + '&oldid=' + this.oldid + '&diff=' + this.diff; } } });