statusline.html 1.2 KB

123456789101112131415161718
  1. <div class="dropbtn materialLevel1" onclick="toggleDropDown('emailSelector')">
  2. <div style="display: flex;" class="noselect">
  3. <img src="https://www.gravatar.com/avatar/{{.EmailHash}}?s=100&d=monsterid" style="border-radius: 100%; border-color: var(--primary-color); border-width: 2px; border-style: solid; height: 30px; width: 30px;">
  4. <div style="margin-top: auto; margin-bottom: auto; margin-left: 10px;" class="noselect">
  5. {{.Name}} {{.Email}}
  6. </div>
  7. <img class="iconBtn" style="width: 30px; margin-left: 20px;" onclick="settings(); event.stopPropagation(); return false;" src="/assets/settings.svg"/>
  8. <img class="iconBtn" style="width: 30px; margin-left: 10px;" onclick="logout(); event.stopPropagation(); return false;" src="/assets/logout.svg"/>
  9. </div>
  10. <div id="emailSelector" class="dropdown-content">
  11. {{range .EmailsIndexes}}
  12. <a href="/m{{.Index}}">{{.Email}}</a>
  13. {{end}}
  14. </div>
  15. <div class="noselect" style="position: relative;">
  16. <img src="/assets/down.svg" style="position: absolute; bottom: 0; right: 0; margin-right: -5px; margin-bottom: -5px; height: 7px;">
  17. </div>
  18. </div>