changeset 53:1d944da50135

expand the JSON to make it readable
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 13 Aug 2012 17:04:28 -0700
parents 821e1dc63453
children 08422429b181
files talosnames/templates/tbpl.html talosnames/web.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/talosnames/templates/tbpl.html	Mon Aug 13 16:56:23 2012 -0700
+++ b/talosnames/templates/tbpl.html	Mon Aug 13 17:04:28 2012 -0700
@@ -12,7 +12,8 @@
 <script src="http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/raw-file/tip/js/Config.js"></script>
 
 <script>
-var data = {{json | html}};
+var data =
+{{json | html}};
 $(document).ready(function() {
 
 var reverse_mapping = {};
--- a/talosnames/web.py	Mon Aug 13 16:56:23 2012 -0700
+++ b/talosnames/web.py	Mon Aug 13 17:04:28 2012 -0700
@@ -91,7 +91,7 @@
         self.data['chrome'] = chrome
         self.data['test_type'] = test_type
 
-        self.data['json'] = json.dumps(self.data)
+        self.data['json'] = json.dumps(self.data, indent=2, sort_keys=True)
 
         self.data['list2cmdline'] = list2cmdline