did not display "master" when no users are connected

This commit is contained in:
Waldek 2020-12-23 06:46:16 +01:00 committed by GitHub
parent 8cfb877963
commit 5c413de264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
</tr> </tr>
{% for _master in _table['MASTERS'] %} {% for _master in _table['MASTERS'] %}
{% if _table['MASTERS'][_master]['PEERS']|length >0 %}
<tr style="background-color:#f9f9f9f9;"> <tr style="background-color:#f9f9f9f9;">
<td style="font-weight:bold" rowspan="{{ (_table['MASTERS'][_master]['PEERS']|length * 2) +1 }}"> {{_master}}<br><div style="font: 8pt arial, sans-serif">{{_table['MASTERS'][_master]['REPEAT']}}</div></td> <td style="font-weight:bold" rowspan="{{ (_table['MASTERS'][_master]['PEERS']|length * 2) +1 }}"> {{_master}}<br><div style="font: 8pt arial, sans-serif">{{_table['MASTERS'][_master]['REPEAT']}}</div></td>
</tr> </tr>
@ -47,6 +47,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
{% endif %}
{% endfor %} {% endfor %}
</table> </table>
{% else %} {% else %}