From e4424d5191f3a1a6c182a1641e4cc4115f8b2a56 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 26 Oct 2014 01:15:43 +0200 Subject: [PATCH] Added support for nested snapshot elements --- public_html/templates/history.tpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/public_html/templates/history.tpl b/public_html/templates/history.tpl index 968eec15..524244c6 100644 --- a/public_html/templates/history.tpl +++ b/public_html/templates/history.tpl @@ -1,3 +1,12 @@ +<% +var reprValue = function(value) { + if (typeof(value) === 'string' || value instanceof String) { + return value; + } + return JSON.stringify(value); +}; +%> +

History

@@ -45,13 +54,13 @@