git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit f5bb452e8bc993b0fd216fb1d6c913481760ad45

Improve git issue link rendering

Show items in separate paragraphs instead of inline. Also separate lists out of
a single paragraph
Charles Lehner committed on 9/9/2016, 4:19:41 PM
Parent: 7d994cda047fc045d76893bc013c17e2098c3b19

Files changed

modules/git.jschanged
modules/git.jsView
@@ -257,11 +257,10 @@
257257 return div
258258 }
259259
260260 if(c.type === 'git-update') {
261- return h('p',
262- 'pushed to ',
263- repoLink(c.repo),
261+ return [
262+ h('p', 'pushed to ', repoLink(c.repo)),
264263 c.refs ? h('ul', Object.keys(c.refs).map(function (ref) {
265264 var rev = c.refs[ref]
266265 return h('li',
267266 shortRefName(ref) + ': ',
@@ -280,15 +279,15 @@
280279 h('li', '+ ', c.commits_more, ' more') : null)
281280 ] : null,
282281 Array.isArray(c.issues) ? c.issues.map(function (issue) {
283282 if (issue.merged === true)
284- return ['Merged ', message_link(issue.link), ' in ',
285- h('code', issue.object), ' ', h('q', issue.label)]
283+ return h('p', 'Merged ', message_link(issue.link), ' in ',
284+ h('code', issue.object), ' ', h('q', issue.label))
286285 if (issue.open === false)
287- return ['Closed ', message_link(issue.link), ' in ',
288- h('code', issue.object), ' ', h('q', issue.label)]
286+ return h('p', 'Closed ', message_link(issue.link), ' in ',
287+ h('code', issue.object), ' ', h('q', issue.label))
289288 }) : null
290- )
289+ ]
291290 }
292291
293292 if(c.type === 'issue-edit') {
294293 return h('div',

Built with git-ssb-web