| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>OwnchatBot</title>
- <link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
- <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
- </head>
- <script src="/static/viewerpanel.js"></script>
-
- <div class="navbar">
- <div class="tab">
- <button class="tablinks" onclick="window.location.href='{{ url_for('web_panels.user_panel', instance=instance, username=username, activeTab='ocbinfo') }}'">OwnchatBot Info</button>
- <button class="tablinks" onclick="window.location.href='{{ url_for('web_panels.user_panel', instance=instance, username=username, activeTab='rewards') }}'">Points and Rewards</button>
- <button class="tablinks" onclick="window.location.href='{{ url_for('web_panels.user_queue') }}'">Rewards Queue</button>
- </div>
- <img alt="Ownchat Bot logo, whimsical robot" src="/static/img/ownchatbotwide.png">
- </div>
- <div class="queuecontent">
- <body>
- <h3>Queue</h3>
- {% if queue %}
- <table>
- <thead>
- <tr>
- <th>Time</th>
- <th>Name</th>
- <th>Description</th>
- <th>User</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- {% for row in queue %}
- <tr>
- <td>{{ row[1].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
- {% if row[4] %}
- <td><s>{{ prefix }}{{ row[2] }}</s></td>
- {% else %}
- <td>{{ prefix }}{{ row[2] }}</td>
- {% endif %}
- <td>{{ all_rewards[row[2]]["info"] }}</td>
- {% if row[6] %}
- <td>{{ row[6] }}</td>
- {% else %}
- <td></td>
- {% endif %}
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- The queue is currently empty
- {% endif %}
- </body>
- <br><br>
- </div>
-
- <script>
- setTimeout(refreshPage, 30 * 1000);
- </script>
- </html>
|