Skip to content

Commit a128d65

Browse files
committed
Run mode now in runs table display
1 parent 83de0ce commit a128d65

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

components/emo/js/emo_runs_streamer.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function MakeRunsTable(div, url, templatediv, counterdiv){
66

77
// The view describes how to make each row
88
//var template = $.trim($("#"+templatediv).html());
9-
var template = "<tr><td style='width:10px'>{{{ link }}}</td><td>{{ number }}</td><td style='width:30px'>{{ date }}</td><td>{{ source }}</td><td>{{ events }}</td><td>{{{ status }}}</td><td style='width:30px'>{{{ tags }}}</td><td style='width:100px'>{{{ top_comment }}}</td></tr>";
9+
var template = "<tr><td style='width:10px'>{{{ link }}}</td><td>{{ number }}</td><td style='width:30px'>{{ date }}</td><td>{{ source }}</td><td>{{ mode }}</td><td>{{ events }}</td><td>{{{ status }}}</td><td style='width:30px'>{{{ tags }}}</td><td style='width:100px'>{{{ top_comment }}}</td></tr>";
1010
Mustache.parse(template);
1111
var view = function(record, index){
1212
/*
@@ -64,6 +64,8 @@ function MakeRunsTable(div, url, templatediv, counterdiv){
6464
}
6565
}
6666

67+
var mode = record.reader.ini.name;
68+
6769
var top_comment = "";
6870
if("comments" in record && record.comments.length != 0){
6971
top_comment = record.comments[0]['text'];
@@ -73,8 +75,9 @@ function MakeRunsTable(div, url, templatediv, counterdiv){
7375
// souce events status tags top_comment
7476
return Mustache.render(template, {link: link, number: number,
7577
date: datestring, source: source,
76-
events: events, status: status,
77-
tags: tags, top_comment: top_comment});
78+
mode: mode, events: events,
79+
status: status, tags: tags,
80+
top_comment: top_comment});
7881
};
7982

8083
var callbacks = {

runs/templates/runs/runs_new.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<th style="width:80px">Num.</th>
9797
<th style="width:100px">Date</th>
9898
<th style="width:80px">Source</th>
99+
<th style="width:150px">Mode</th>
99100
<th style="width:100px">Events</th>
100101
<th style="width:150px;">Status &nbsp;<a data-toggle="modal" href="#helpModal" style="padding-left:3px" title="Help">?</a></th>
101102
<th style="width:100px">Tags</th>
@@ -445,14 +446,15 @@ <h5><strong>{% verbatim %}{{ host }}{% endverbatim %}</strong></h5>
445446

446447
<script id="template" type="text/html">
447448
<tr>
448-
<td>{{ link }}</td>
449-
<td>{{ number }}</td>
450-
<td>{{ date }}</td>
451-
<td>{{ source }}</td>
452-
<td>{{ events }}</td>
453-
<td>{{ status }}</td>
454-
<td>{{ tags }}</td>
455-
<td>{{ top_comment }}</td>
449+
<td>{% verbatim %}{{ link }}{% endverbatim %}</td>
450+
<td>{% verbatim %}{{ number }}{% endberbatim %}</td>
451+
<td>{% verbatim %}{{ date }}{% endverbatim %}</td>
452+
<td>{% verbatim %}{{ source }}{% endberbatim %}</td>
453+
<tb>{% verbatim %}{{ mode }}{% endverbatim %}</td>
454+
<td>{% verbatim %}{{ events }}{% endverbatim %}</td>
455+
<td>{% verbatim %}{{ status }}{% endverbatim %}</td>
456+
<td>{% verbatim %}{{ tags }}{% endverbatim %}</td>
457+
<td>{% verbatim %}{{ top_comment }}{% endverbatim %}</td>
456458
</tr>
457459
</script>
458460

runs/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def runs_stream(request):
156156
"name": 1,
157157
"start": 1,
158158
"source": 1,
159+
"reader.ini.name": 1,
159160
"data": 1,
160161
"tags": 1,
161162
"comments": 1,

0 commit comments

Comments
 (0)