diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-01-08 22:03:51 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-01-08 22:03:51 -1000 |
commit | 09cf04663fe2a772d5a06bbcf86b9014dc4f5228 (patch) | |
tree | ae755d9bf9757a807938718acf5910b291f90198 /lib/render-msg.js | |
parent | cbf9a1d87eb43eaea73e6c019e7b4a2dca3bbaa6 (diff) | |
download | patchfoo-09cf04663fe2a772d5a06bbcf86b9014dc4f5228.tar.gz patchfoo-09cf04663fe2a772d5a06bbcf86b9014dc4f5228.zip |
Render line comments on diffs
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 0835fee..78c7d5c 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -1668,7 +1668,10 @@ RenderMsg.prototype.lineComment = function (cb) { h('a', { href: self.toUrl('/git/commit/' + self.c.commitId + '?msg=' + encodeURIComponent(self.c.updateId)) }, String(self.c.commitId).substr(0, 8)), ' ', - h('code', self.c.filePath + ':' + self.c.line) + h('a', { + href: self.toUrl('/git/line-comment/' + + encodeURIComponent(self.msg.key)) + }, h('code', self.c.filePath + ':' + self.c.line)) )), self.c.text ? h('div', {innerHTML: self.render.markdown(self.c.text)}) : ''), cb) |