123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!-- This page is used as an iframe in the main page -->
- <!-- This allows it to auto-refresh without interrupting the bouncing -->
- <meta http-equiv="refresh" content="{{ refresh_rate }}">
- <style>
- h1 {
- font-size: 24px;
- line-height: 44px;
- font-weight: bold;
- margin-top: 0;
- margin-bottom: 0;
- }
- h2 {
- font-size: 18px;
- line-height: 20px;
- margin-top: 0;
- margin-left: 15px;
- margin-bottom: -10px;
- }
- </style>
- <script type="text/javascript">
- // Inherits the styling from the page embedding this
- window.onload = function() {
- if (parent) {
- var oHead = document.getElementsByTagName("head")[0];
- var arrStyleSheets = parent.document.getElementsByTagName("style");
- for (var i = 0; i < arrStyleSheets.length; i++)
- oHead.appendChild(arrStyleSheets[i].cloneNode(true));
- }
- }
- </script>
- <body>
- <h1>TeamSpeak Server Status</h1>
- {% if users|length == 0 %}
- No one in teamspeak!
- {% else %}
- {% for channel, people in users.items() %}
- <h2>{{ channel }}</h2>
- <ul>
- {% for user in people %}
- <li>{{ user }}</li>
- {% endfor %}
- </ul>
- {% endfor %}
- {% endif %}
- </body>
|