diff --git a/dist/base.html b/dist/base.html
index 6d4bf64..dc16df2 100644
--- a/dist/base.html
+++ b/dist/base.html
@@ -7,13 +7,11 @@
-
-
{% block body %}{% end %}
diff --git a/dist/history.html b/dist/history.html
index 78f8644..417258b 100644
--- a/dist/history.html
+++ b/dist/history.html
@@ -15,9 +15,9 @@
-
+
- History
+ show entries with no changes
@@ -44,8 +44,10 @@ var app = new Vue({
el: '#app',
delimiters: ['${', '}'],
data: {
+ show_empty: false,
schedule: {},
history: [],
+ filtered_history: [],
oldid: null,
diff: null,
lasstid: null,
@@ -63,9 +65,22 @@ var app = new Vue({
self = this;
var data = axios.get('/api/history/' + this.id).then(function(response) {
self.history = response.data.history;
+ self.updateFilter();
self.schedule = response.data.schedule;
self.lastid = response.data.lastid;
});
+ },
+ updateFilter: function() {
+ self = this;
+ this.filtered_history = _.filter(self.history, function(o) {
+ if (self.show_empty) {
+ return true;
+ }
+ return o.changes;
+ });
+ },
+ toggleShowEmpty: function() {
+ this.updateFilter();
}
}
});