Permalink
Browse files

Merge pull request #5 from henryoswald/patch-1

changed the web gui to render objects values
  • Loading branch information...
2 parents 1061dd7 + 623bc20 commit 248bd80a9c1778bc2789dcca2c1360379fb1fdbd @baoshan committed Feb 26, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/web/fairy.html
View
@@ -99,7 +99,7 @@
<tr>
<td><%= item.id.substring(0,8) %></td>
<%_.each(item.params, function(value){ %>
- <td> <%= value %> </td>
+ <td> <%= JSON.stringify(value, null, " ") %> </td>
<% })%>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.queued)).valueOf()).humanize()%></td>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.finished)).valueOf()).humanize()%></td>
@@ -126,7 +126,7 @@
<tr>
<td><%= item.id.substring(0,8) %></td>
<%_.each(item.params, function(value){ %>
- <td> <%= value %> </td>
+ <td> <%= JSON.stringify(value, null, " ") %> </td>
<% })%>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.queued)).valueOf()).humanize()%></td>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.failed)).valueOf()).humanize()%></td>
@@ -171,7 +171,7 @@
<tr>
<td><%= item.id.substring(0,8) %></td>
<%_.each( item.params, function(value){ %>
- <td> <%= value %> </td>
+ <td> <%= JSON.stringify(value, null, " ") %> </td>
<% })%>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.queued)).valueOf()).humanize()%></td>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.started)).valueOf()).humanize()%></td>
@@ -197,7 +197,7 @@
<tr>
<td><%= item.id.substring(0,8) %></td>
<%_.each( item.params, function(value){ %>
- <td> <%= value %> </td>
+ <td> <%= JSON.stringify(value, null, " ") %> </td>
<% })%>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.queued)).valueOf()).humanize()%></td>
<td> <%= moment.duration((new Date).valueOf()-(new Date(item.started)).valueOf()).humanize()%></td>

0 comments on commit 248bd80

Please sign in to comment.