git ssb

2+

ev / mvd



Commit 57c72373b20077b5e445c2470cbfa13313b5930b

make sure to include names on buttons

Ev Bogue committed on 6/16/2018, 8:55:36 PM
Parent: e03e2bdee5572f15fe3434f5b1e0d456f6bd0f76

Files changed

views.jschanged
views.jsView
@@ -97,24 +97,24 @@
9797 } else {
9898 screen.firstChild.appendChild(profile)
9999 }
100100
101- var name = avatar.name(src)
102-
103101 var avatars = h('div.avatars',
104102 h('a', {href: '#' + src},
105103 h('span.avatar--medium', avatar.image(src)),
106- name
104 + avatar.name(src)
107105 )
108106 )
109107
108 + var name = avatar.name(src)
109 +
110110 var buttons = h('div.buttons')
111111
112112 profile.firstChild.appendChild(avatars)
113113 profile.firstChild.appendChild(buttons)
114114 buttons.appendChild(tools.mute(src))
115115
116- var writeMessage = h('button.btn', 'Public message ' + name.textContent, {
116 + var writeMessage = h('button.btn', 'Public message ', avatar.name(src), {
117117 onclick: function () {
118118 opts = {}
119119 opts.type = 'post'
120120 opts.mentions = '[' + name.textContent + '](' + src + ')'
@@ -122,9 +122,9 @@
122122 profile.appendChild(composer)
123123 }
124124 })
125125
126- var writePrivate = h('button.btn', 'Private message ' + name.textContent, {
126 + var writePrivate = h('button.btn', 'Private message ', avatar.name(src), {
127127 onclick: function () {
128128 opts = {}
129129 opts.type = 'post'
130130 opts.mentions = '[' + name.textContent + '](' + src + ')'
@@ -139,9 +139,8 @@
139139 buttons.appendChild(tools.follow(src))
140140
141141 profile.firstChild.appendChild(tools.getFollowing(src))
142142 profile.firstChild.appendChild(tools.getFollowers(src))
143-
144143 }
145144
146145 var msgThread = function (src) {
147146

Built with git-ssb-web