show mbux in popover

pull/143/head
Aevann 2023-04-24 15:39:25 +02:00
parent d43bed37d5
commit a34fc92e97
3 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,7 @@ document.addEventListener('shown.bs.popover', (e) => {
popover.getElementsByClassName('pop-postcount')[0].innerHTML = author["post_count"]
popover.getElementsByClassName('pop-commentcount')[0].innerHTML = author["comment_count"]
popover.getElementsByClassName('pop-coins')[0].innerHTML = author["coins"]
popover.getElementsByClassName('pop-marseybux')[0].innerHTML = author["marseybux"]
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"]

View File

@ -831,6 +831,7 @@ class User(Base):
'bannerurl': self.banner_url,
'bio_html': self.bio_html_eager,
'coins': self.coins,
'marseybux': self.marseybux,
'post_count': self.real_post_count(v),
'comment_count': self.real_comment_count(v),
'badges': [x.path for x in self.badges],

View File

@ -39,6 +39,10 @@
<strong class="pop-coins text-black"></strong>
<span class="text-black">coins</span>
</span>
<span class="ml-3">
<strong class="pop-marseybux text-black"></strong>
<span class="text-black">marseybux</span>
</span>
<a href="/" {% if v and v.newtab %}data-target="t" target="_blank"{% endif %} class="pop-view_more ml-auto text-decoration-none">
<span class="pl-3 pr-1 pr-md-3 py-3">