Commit f5bb452e8bc993b0fd216fb1d6c913481760ad45
Improve git issue link rendering
Show items in separate paragraphs instead of inline. Also separate lists out of a single paragraphCharles Lehner committed on 9/9/2016, 4:19:41 PM
Parent: 7d994cda047fc045d76893bc013c17e2098c3b19
Files changed
modules/git.js | changed |
modules/git.js | ||
---|---|---|
@@ -257,11 +257,10 @@ | ||
257 | 257 | return div |
258 | 258 | } |
259 | 259 | |
260 | 260 | 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)), | |
264 | 263 | c.refs ? h('ul', Object.keys(c.refs).map(function (ref) { |
265 | 264 | var rev = c.refs[ref] |
266 | 265 | return h('li', |
267 | 266 | shortRefName(ref) + ': ', |
@@ -280,15 +279,15 @@ | ||
280 | 279 | h('li', '+ ', c.commits_more, ' more') : null) |
281 | 280 | ] : null, |
282 | 281 | Array.isArray(c.issues) ? c.issues.map(function (issue) { |
283 | 282 | 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)) | |
286 | 285 | 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)) | |
289 | 288 | }) : null |
290 | - ) | |
289 | + ] | |
291 | 290 | } |
292 | 291 | |
293 | 292 | if(c.type === 'issue-edit') { |
294 | 293 | return h('div', |
Built with git-ssb-web