diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index de2757e..fb57bf7 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1785,7 +1785,12 @@ Serve.prototype.gitCommit = function (rev) { return ph('tr', [ ph('td', ph('code', u.escapeHTML(file.name))), ph('td', file.deleted ? 'deleted' - : file.created ? 'created' + : file.created ? + ph('a', {href: + self.app.render.toUrl('/git/blob/' + + file.hash[0] + + '?msg=' + encodeURIComponent(obj.msg.key)) + }, 'created') : file.hash ? ph('a', {href: self.app.render.toUrl('/git/diff/' |