Skip to content

Commit

Permalink
bm
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon committed Sep 4, 2013
1 parent 8fe057d commit 415c22f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def stream_debug(data)
$connections_debug.each { |out| out <<
"data: #{debug.to_json}\n\n" }

#todo: delete old messages
Debug.all.drop(32).each { |debug| debug.destroy }
end
def stream_result(data)
$connections_result.each { |out| out <<
Expand Down
7 changes: 5 additions & 2 deletions ui/views/raw/event_single.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@
<body>
<table id="eventContainer">
<thead>
<tr><th>Id</th><th>Time</th></tr>
<tr><th>Id</th><th>Time</th><th>Rider</th><th>Actions</th></tr>
</thead>
<tbody data-bind="foreach: events">
<tr data-bind="if: node == <%= id %>">
<td data-bind="text: id"></td>
<td data-bind="text: time"></td>
<td><p>Rider: <input data-bind="value: rider" /></p></td>
<td><a href="#" data-bind="click: $root.saveEvent">Save</a></td>
<td>
<a href="#" data-bind="click: $root.saveEvent">Save</a>
<a href="#" data-bind="click: $root.deleteEvent">Delete</a>
</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 415c22f

Please sign in to comment.