userqueue.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>OwnchatBot</title>
  5. <link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
  6. <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
  7. </head>
  8. <script src="/static/viewerpanel.js"></script>
  9. <div class="navbar">
  10. <div class="tab">
  11. <button class="tablinks" onclick="window.location.href='{{ url_for('web_panels.user_panel', instance=instance, username=username, activeTab='ocbinfo') }}'">OwnchatBot Info</button>
  12. <button class="tablinks" onclick="window.location.href='{{ url_for('web_panels.user_panel', instance=instance, username=username, activeTab='rewards') }}'">Points and Rewards</button>
  13. <button class="tablinks" onclick="window.location.href='{{ url_for('web_panels.user_queue') }}'">Rewards Queue</button>
  14. </div>
  15. <img alt="Ownchat Bot logo, whimsical robot" src="/static/img/ownchatbotwide.png">
  16. </div>
  17. <div class="queuecontent">
  18. <body>
  19. <h3>Queue</h3>
  20. {% if queue %}
  21. <table>
  22. <thead>
  23. <tr>
  24. <th>Time</th>
  25. <th>Name</th>
  26. <th>Description</th>
  27. <th>User</th>
  28. <th></th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. {% for row in queue %}
  33. <tr>
  34. <td>{{ row[1].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
  35. {% if row[4] %}
  36. <td><s>{{ prefix }}{{ row[2] }}</s></td>
  37. {% else %}
  38. <td>{{ prefix }}{{ row[2] }}</td>
  39. {% endif %}
  40. <td>{{ all_rewards[row[2]]["info"] }}</td>
  41. {% if row[6] %}
  42. <td>{{ row[6] }}</td>
  43. {% else %}
  44. <td></td>
  45. {% endif %}
  46. </tr>
  47. {% endfor %}
  48. </tbody>
  49. </table>
  50. {% else %}
  51. &nbsp;&nbsp;The queue is currently empty
  52. {% endif %}
  53. </body>
  54. <br><br>
  55. </div>
  56. <script>
  57. setTimeout(refreshPage, 30 * 1000);
  58. </script>
  59. </html>