user.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <%include file="header.inc.html"/>
  2. <div class="media">
  3. <div class="media-left">
  4. <figure class="image is-128x128">
  5. <img id="avatar" src="/static/avatars/default/default.128.png">
  6. </figure>
  7. <div id="change_avatar">
  8. <div id="change_avatar_dropdown" class="dropdown">
  9. <div class="dropdown-trigger">
  10. <button id="change_avatar_button" class="button is-small is-light is-success" style="width: 128px !important;" onclick="$('#change_avatar_dropdown').toggleClass('is-active');">
  11. Change avatar
  12. </button>
  13. </div>
  14. <div class="dropdown-menu" id="dropdown-menu" role="menu">
  15. <div class="dropdown-content" style="padding: 5px;">
  16. <div class="field">
  17. <div class="control">
  18. <input type="file" id="avatar_input" />
  19. </div>
  20. </div>
  21. <div class="field has-text-right">
  22. <div class="control">
  23. <button id="upload_avatar_button" class="button is-primary is-small">Upload</button>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="media-content">
  32. <p id="username" class="title is-4"></p>
  33. <p class="subtitle is-6">registered at <time id="signup_date" class="has-text-weight-bold"></time> • uploaded <span id="videos_count" class="has-text-weight-bold"></span> video<span id="videos_count_suffix"></span>.</p>
  34. </div>
  35. </div>
  36. <hr>
  37. <p id="no_videos" class="content is-size-5 has-text-weight-bold has-text-centered">
  38. No videos.
  39. </p>
  40. <div id="user_videos" class="columns is-multiline is-desktop"></div>
  41. <script>
  42. window.user_id = ${user_id};
  43. </script>
  44. <script src="/static/js/user.js"></script>
  45. <%include file="footer.inc.html"/>