git ssb

16+

Dominic / patchbay



Commit f6391d5b5450e27f0c7a8dba7d82a53c4ad2634a

make the git module use divs for common titles

mix irving committed on 1/22/2017, 4:05:37 AM
Parent: d45e0ad160051c97802cf3566af0ab967fcc0c0e

Files changed

modules_extra/git.jschanged
modules_extra/git.jsView
@@ -455,27 +455,28 @@
455455 var c = msg.value.content
456456
457457 if(c.type === 'git-repo') {
458458 return h('div', [
459- h('p', 'git repo ', repoName(msg.key)),
460- c.upstream ? h('p', 'fork of ', repoLink(c.upstream)) : ''
459 + h('div', 'git repo ', repoName(msg.key)),
460 + c.upstream ? h('br') : '',
461 + c.upstream ? h('div', 'fork of ', repoLink(c.upstream)) : ''
461462 ])
462463 }
463464
464465 if(c.type === 'git-update') {
465- return h('p', 'pushed to ', repoLink(c.repo))
466 + return h('div', 'pushed to ', repoLink(c.repo))
466467 }
467468
468469 if(c.type === 'issue-edit') {
469470 return
470471 }
471472
472473 if(c.type === 'issue') {
473- return h('p', 'opened issue on ', repoLink(c.project))
474 + return h('div', 'opened issue on ', repoLink(c.project))
474475 }
475476
476477 if(c.type === 'pull-request') {
477- return h('p', 'opened pull-request ', [
478 + return h('div', 'opened pull-request ', [
478479 'to ', repoLink(c.repo), ':', c.branch, ' ',
479480 'from ', repoLink(c.head_repo), ':', c.head_branch
480481 ])
481482 }

Built with git-ssb-web