dashboard.handlebars 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{#> base}}
  2. {{#*inline "head-block"}}
  3. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
  4. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
  5. <script type="text/javascript" src="/js/dashboard.js"></script>
  6. {{/inline}}
  7. {{#*inline "body-block"}}
  8. <section id='dashboard' class="section">
  9. <div id="panel" class="container">
  10. <h1 class="title">Dashboard</h1>
  11. <h2 class="subtitle">A simple <strong>dashboard</strong>, to sort your uploaded stuff</h2>
  12. <hr>
  13. <div class="columns">
  14. <div class="column is-3">
  15. <aside class="menu" id="menu">
  16. <p class="menu-label">General</p>
  17. <ul class="menu-list">
  18. <li><a href="/">Frontpage</a></li>
  19. <li><a id="itemUploads" onclick="panel.getUploads()">Uploads</a></li>
  20. </ul>
  21. <p class="menu-label">Albums</p>
  22. <ul class="menu-list">
  23. <li><a id="itemManageGallery" onclick="panel.getAlbums()">Manage your albums</a></li>
  24. <li>
  25. <ul id='albumsContainer'></ul>
  26. </li>
  27. </ul>
  28. <p class="menu-label">Administration</p>
  29. <ul class="menu-list">
  30. <li id="itemUserAdd"><a id="itemTokens" onclick="panel.addUser()">Add user</a></li>
  31. <li><a id="itemTokens" onclick="panel.changeToken()">Change your token</a></li>
  32. <li><a id="itemPassword" onclick="panel.changePassword()">Change your password</a></li>
  33. <li><a id="itemLogout"onclick="panel.logout()">Logout</a></li>
  34. </ul>
  35. </aside>
  36. </div>
  37. <div class="column has-text-centered" id='page'>
  38. <img src="/images/logo.png">
  39. </div>
  40. </div>
  41. </div>
  42. </section>
  43. {{/inline}}
  44. {{/base}}