Commit 97b67017a4dd029fc7f64c7bc120a90451c6e24b
add stars to git-updates and git-repos
Ev Bogue committed on 3/13/2019, 8:09:03 PMParent: 3fd43b43c3b954ff0c298a7fd570c4d12ba97d72
Files changed
render.js | changed |
views.js | changed |
render.js | ||
---|---|---|
@@ -300,8 +300,9 @@ | ||
300 | 300 … | }) |
301 | 301 … | } |
302 | 302 … | |
303 | 303 … | messageContent.appendChild(commits) |
304 … | + messageContent.appendChild(tools.star(msg)) | |
304 | 305 … | |
305 | 306 … | return message |
306 | 307 … | } |
307 | 308 … | |
@@ -311,16 +312,18 @@ | ||
311 | 312 … | var reponame = h('p', 'git-ssb repo ', h('a', {href: '#' + msg.key}, msg.key)) |
312 | 313 … | |
313 | 314 … | messageContent.appendChild(reponame) |
314 | 315 … | |
316 … | + | |
315 | 317 … | ssbAvatar(sbot, id, msg.key, function (err, data) { |
316 | 318 … | if (data) |
317 | 319 … | var actualname = h('p', 'git-ssb repo ', h('a', {href: '#' + msg.key}, '%' + data.name)) |
318 | 320 … | reponame.parentNode.replaceChild(actualname, reponame) |
319 | 321 … | }) |
320 | 322 … | |
321 | 323 … | var cloneurl = h('pre', 'git clone ssb://' + msg.key) |
322 | 324 … | messageContent.appendChild(cloneurl) |
325 … | + messageContent.appendChild(tools.star(msg)) | |
323 | 326 … | return message |
324 | 327 … | } |
325 | 328 … | |
326 | 329 … | if (typeof msg.value.content === 'string') { |
views.js | ||
---|---|---|
@@ -58,9 +58,9 @@ | ||
58 | 58 … | screen.appendChild(hyperscroll(content)) |
59 | 59 … | |
60 | 60 … | sbot.get(src, function (err, data) { |
61 | 61 … | 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.')) | |
63 | 63 … | content.appendChild(message) |
64 | 64 … | } |
65 | 65 … | if (data) { |
66 | 66 … | var message = {} |
Built with git-ssb-web