git ssb

0+

ev / 0qc



Commit 97b67017a4dd029fc7f64c7bc120a90451c6e24b

add stars to git-updates and git-repos

Ev Bogue committed on 3/13/2019, 8:09:03 PM
Parent: 3fd43b43c3b954ff0c298a7fd570c4d12ba97d72

Files changed

render.jschanged
views.jschanged
render.jsView
@@ -300,8 +300,9 @@
300300 })
301301 }
302302
303303 messageContent.appendChild(commits)
304 + messageContent.appendChild(tools.star(msg))
304305
305306 return message
306307 }
307308
@@ -311,16 +312,18 @@
311312 var reponame = h('p', 'git-ssb repo ', h('a', {href: '#' + msg.key}, msg.key))
312313
313314 messageContent.appendChild(reponame)
314315
316 +
315317 ssbAvatar(sbot, id, msg.key, function (err, data) {
316318 if (data)
317319 var actualname = h('p', 'git-ssb repo ', h('a', {href: '#' + msg.key}, '%' + data.name))
318320 reponame.parentNode.replaceChild(actualname, reponame)
319321 })
320322
321323 var cloneurl = h('pre', 'git clone ssb://' + msg.key)
322324 messageContent.appendChild(cloneurl)
325 + messageContent.appendChild(tools.star(msg))
323326 return message
324327 }
325328
326329 if (typeof msg.value.content === 'string') {
views.jsView
@@ -58,9 +58,9 @@
5858 screen.appendChild(hyperscroll(content))
5959
6060 sbot.get(src, function (err, data) {
6161 if (err) {
62- var message = h('div.message', 'Missing message!')
62 + var message = h('div.message', h('div.messageContent', 'The message ', h('a', {href: src}, src), ' is missing. You may not have synced completely with the network yet, or the author is too far away from you on the network.'))
6363 content.appendChild(message)
6464 }
6565 if (data) {
6666 var message = {}

Built with git-ssb-web