git ssb

2+

ev / mvd



Commit 0c93934cd664ac8439b72c96caffcad5e51751a2

add avatar names as titles for follow render

Ev Bogue committed on 6/13/2018, 11:03:20 PM
Parent: 584349aaa5ca0d0cff1e326a204f1c0f396301ca

Files changed

tools.jschanged
tools.jsView
@@ -30,9 +30,9 @@
3030 followingCount++
3131 followingcount.textContent = followingCount
3232 var gotIt = document.getElementById('following:' + msg.value.content.contact.substring(0, 44))
3333 if (gotIt == null) {
34- following.appendChild(h('a#following:'+ msg.value.content.contact.substring(0, 44), {href: '#' + msg.value.content.contact}, h('span.avatar--small', avatar.image(msg.value.content.contact))))
34 + following.appendChild(h('a#following:'+ msg.value.content.contact.substring(0, 44), {title: avatar.name(msg.value.content.contact).textContent, href: '#' + msg.value.content.contact}, h('span.avatar--small', avatar.image(msg.value.content.contact))))
3535 }
3636 }
3737 if (msg.value.content.following == false) {
3838 followingcount = document.getElementById('followingcount')
@@ -70,9 +70,9 @@
7070 followerCount++
7171 followcount.textContent = followerCount
7272 var gotIt = document.getElementById('followers:' + msg.value.author.substring(0, 44))
7373 if (gotIt == null) {
74- followers.appendChild(h('a#followers:'+ msg.value.author.substring(0, 44), {href: '#' + msg.value.author}, h('span.avatar--small', avatar.image(msg.value.author))))
74 + followers.appendChild(h('a#followers:'+ msg.value.author.substring(0, 44), {title: avatar.name(msg.value.author).textContent, href: '#' + msg.value.author}, h('span.avatar--small', avatar.image(msg.value.author))))
7575 }
7676 }
7777 if (msg.value.content.following == false) {
7878 followcount = document.getElementById('followercount')

Built with git-ssb-web