|
26 | 26 | <h2>Messages</h2>
|
27 | 27 |
|
28 | 28 | {% if collector.count == 0 %}
|
29 |
| - <div class="empty"> |
| 29 | + <div class="empty empty-panel"> |
30 | 30 | <p>No messages have been collected.</p>
|
31 | 31 | </div>
|
32 | 32 | {% else %}
|
|
60 | 60 | <th>Retry</th>
|
61 | 61 | </tr>
|
62 | 62 | </thead>
|
63 |
| - {% for i, message in data.messages %} |
64 |
| - <tr> |
65 |
| - <td class="font-normal text-small text-muted nowrap">{{ i + 1 }}</td> |
66 |
| - <td class="nowrap">{{ '%.0f'|format(message.duration) }} ms</td> |
67 |
| - <td class="nowrap">{{ '%.2f'|format(message.memory / 1024 / 1024) }} MB</td> |
68 |
| - <td class="font-normal text-small text-bold nowrap">{{ message.object.topics|join(',') }}</td> |
69 |
| - <td>{{ dump(message.object.data) }}</td> |
70 |
| - <td>{{ dump(message.object.private) }}</td> |
71 |
| - <td class="nowrap">{{ message.object.id }}</td> |
72 |
| - <td class="nowrap">{{ message.object.type }}</td> |
73 |
| - <td class="nowrap">{{ message.object.retry }}</td> |
74 |
| - </tr> |
75 |
| - {% endfor %} |
| 63 | + <tbody> |
| 64 | + {% for message in data.messages %} |
| 65 | + <tr> |
| 66 | + <td class="font-normal text-small text-muted nowrap">{{ loop.index }}</td> |
| 67 | + <td class="nowrap">{{ '%.0f'|format(message.duration) }} ms</td> |
| 68 | + <td class="nowrap">{{ '%.2f'|format(message.memory / 1024 / 1024) }} MB</td> |
| 69 | + <td class="font-normal text-small text-bold nowrap">{{ message.object.topics|join(',') }}</td> |
| 70 | + <td>{{ dump(message.object.data) }}</td> |
| 71 | + <td>{{ dump(message.object.private) }}</td> |
| 72 | + <td class="nowrap">{{ message.object.id }}</td> |
| 73 | + <td class="nowrap">{{ message.object.type }}</td> |
| 74 | + <td class="nowrap">{{ message.object.retry }}</td> |
| 75 | + </tr> |
| 76 | + {% endfor %} |
| 77 | + </tbody> |
76 | 78 | </table>
|
77 | 79 | </div>
|
78 | 80 | </div>
|
|
0 commit comments