admin.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template name="admin">
  2. {{> alerts}}
  3. <div class="landing">
  4. {{> header}}
  5. <div class="row" style="margin-top: 20px; height: 100%;">
  6. <div class="col-md-5 col-md-offset-1 admin-container" style="height: 50%;">
  7. <h1>Playlists</h1>
  8. <div>
  9. {{#each playlists}}
  10. <p>{{display}} playlist</p>
  11. <table class="table" style="border-bottom: 1px solid white;">
  12. <tr>
  13. <th>Songs</th>
  14. <th>Users</th>
  15. <th>Admins</th>
  16. <th>Reports</th>
  17. <th>Queue</th>
  18. </tr>
  19. <tr>
  20. <td>{{songs.length}}</td>
  21. <td></td>
  22. <td></td>
  23. <td></td>
  24. <td>{{queueCount display}}</td>
  25. <td><a href="/stations">Edit</a></td>
  26. </tr>
  27. </table>
  28. {{/each}}
  29. </div>
  30. </div>
  31. <div class="col-md-4 col-md-offset-1 admin-container" style="height: 30%;">
  32. <h1>Site statistics</h1>
  33. <p>Total Users Online: {{users}}</p>
  34. </div>
  35. <div style="clear: both;"></div>
  36. <div class="col-md-5 col-md-offset-1 admin-container" style="height: 50%;">
  37. <h1>Queue</h1>
  38. {{#each queues}}
  39. <p>{{type}} playlist</p>
  40. <table class="table" style="border-bottom: 1px solid white;">
  41. <tr>
  42. <th>Title</th>
  43. <th>Artist</th>
  44. <th>Duration</th>
  45. <th>Type</th>
  46. </tr>
  47. {{#each songs}}
  48. <tr>
  49. <td>{{this.title}}</td>
  50. <td>{{this.artist}}</td>
  51. <td>{{this.duration}}</td>
  52. <td>{{this.type}}</td>
  53. <!--<td><a href="/stations">Edit</a></td>-->
  54. </tr>
  55. {{/each}}
  56. </table>
  57. {{/each}}
  58. </div>
  59. <div class="col-md-4 col-md-offset-1 admin-container" style="height: 50%">
  60. <h1>Reports</h1>
  61. {{#each reports}}
  62. <p>{{reports}}</p>
  63. {{/each}}
  64. </div>
  65. </div>
  66. <ul class="bg-bubbles">
  67. <li></li>
  68. <li></li>
  69. <li></li>
  70. <li></li>
  71. <li></li>
  72. <li></li>
  73. <li></li>
  74. <li></li>
  75. <li></li>
  76. <li></li>
  77. </ul>
  78. </div>
  79. </template>