show user id in popover

pull/139/head
Aevann 2023-03-11 12:24:17 +02:00
parent 40834d8277
commit b5d42463d7
2 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,7 @@ document.addEventListener('shown.bs.popover', (e) => {
popover.getElementsByClassName('pop-coins')[0].innerHTML = author["coins"]
popover.getElementsByClassName('pop-view_more')[0].href = author["url"]
popover.getElementsByClassName('pop-created-date')[0].innerHTML = author["created_date"]
popover.getElementsByClassName('pop-id')[0].innerHTML = author["id"]
})
function post(url) {

View File

@ -7,8 +7,9 @@
<img class="pop-hat profile-pic-75-hat hat" loading="lazy">
</div>
<div class="px-3 text-truncate">
<h5 class="pop-username text-truncate text-black mb-1 pb-1"></h5>
<h5 class="pop-username text-truncate text-black mb-0 pb-1 mt-4 pt-2"></h5>
<span class="text-black">Joined <span class="pop-created-date"></span></span>
<div class="text-black">User ID: <span class="pop-id"></span></div>
</div>
</div>