From b013d39d67174ebfdd1b3fda6cb539e59ae3a92c Mon Sep 17 00:00:00 2001 From: Diffido Date: Tue, 30 Jan 2018 21:49:04 +0100 Subject: [PATCH] fix #13: improved resposive layout --- dist/history.html | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/dist/history.html b/dist/history.html index cd64ce0..53d441d 100644 --- a/dist/history.html +++ b/dist/history.html @@ -25,13 +25,25 @@ - (curcur | prev) - - +
+
+ (curcur | prev)  +
+
+ +
+
+ +
+
- ${ item.id } - ${ item.message } - +${ item.insertions || 0 },-${ item.deletions || 0 } + + Commit: ${ prettifyCommitID(item) } + ${ item.id } +
+ Changes: +${ item.insertions || 0 },-${ item.deletions || 0 } +
+ ${ prettifyDate(item.message) }
@@ -74,6 +86,13 @@ var app = new Vue({ self.last_id = response.data.last_id; }); }, + prettifyCommitID: function(item) { + var cid = item.id || ''; + return cid.substring(0, 7); + }, + prettifyDate: function(date) { + return date.substring(0, date.indexOf('.')); + }, updateFilter: function() { if (this.show_empty) { this.filtered_history = this.history;