|
10 | 10 | </div>
|
11 | 11 | <div id="summary-table-div">
|
12 | 12 |
|
13 |
| - <table class="table"> |
14 |
| - {% for i, (category, summary) in enumerate(stats, -1) %} |
15 |
| - <tr id="row_{{i}}"> |
16 |
| - <td> |
17 |
| - {% if editable %} |
18 |
| - <a class="btn btn-danger" onclick="delete_prep_column({{pid}}, '{{category}}', {{i}});"><span class="glyphicon glyphicon-trash"></span></a> |
19 |
| - {% else %} |
20 |
| - |
21 |
| - {% end %} |
| 13 | + <table class="table"> |
| 14 | + {% for i, (category, summary) in enumerate(stats, -1) %} |
| 15 | + <tr id="row_{{i}}"> |
| 16 | + <td> |
| 17 | + {% if editable %} |
| 18 | + <a class="btn btn-danger" onclick="delete_prep_column({{pid}}, '{{category}}', {{i}});"><span class="glyphicon glyphicon-trash"></span></a> |
| 19 | + {% else %} |
| 20 | + |
| 21 | + {% end %} |
| 22 | + </td> |
| 23 | + <td colspan="2"> |
| 24 | + {% if len(summary) == 1 %} |
| 25 | + <b>{{category}}</b>: <tt>{{summary[0][0]}}</tt> is repeated in all rows. |
| 26 | + </td> |
| 27 | + {% elif len(summary) == num_samples %} |
| 28 | + <b>{{category}}</b>: All the values in this category are different. |
22 | 29 | </td>
|
23 |
| - <td colspan="2"> |
24 |
| - {% if len(summary) == 1 %} |
25 |
| - <b>{{category}}</b>: <tt>{{summary[0][0]}}</tt> is repeated in all rows. |
26 |
| - </td> |
27 |
| - {% elif len(summary) == num_samples %} |
28 |
| - <b>{{category}}</b>: All the values in this category are different. |
29 |
| - </td> |
30 |
| - {% else %} |
31 |
| - <b>{{category}}<b> |
32 |
| - |
33 |
| - <button type="button" class="btn" data-toggle="collapse" data-target=".{{i}}collapsed">values</button> |
34 |
| - </td> |
35 |
| - {% for row in summary %} |
36 |
| - </tr> |
37 |
| - <tr class="collapse {{i}}collapsed"> |
38 |
| - <td> </td> |
39 |
| - <td>{{row[0]}}</td> |
40 |
| - <td>{{row[1]}}</td> |
41 |
| - {% end %} |
| 30 | + {% else %} |
| 31 | + <b>{{category}}<b> |
| 32 | + |
| 33 | + <button type="button" class="btn" data-toggle="collapse" data-target=".{{i}}collapsed">values</button> |
| 34 | + </td> |
| 35 | + {% for row in summary %} |
| 36 | + </tr> |
| 37 | + <tr class="collapse {{i}}collapsed"> |
| 38 | + <td> </td> |
| 39 | + <td>{{row[0]}}</td> |
| 40 | + <td>{{row[1]}}</td> |
42 | 41 | {% end %}
|
43 |
| - </tr> |
44 | 42 | {% end %}
|
45 |
| - </table> |
46 |
| - |
47 |
| - |
48 |
| - |
| 43 | + </tr> |
| 44 | + {% end %} |
| 45 | + </table> |
49 | 46 |
|
50 | 47 | </div>
|
51 | 48 | </div>
|
0 commit comments