diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-01-08 17:26:36 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-01-08 17:26:36 -1000 |
commit | 498eaa3edf1241abdc6180410db97254c70e2185 (patch) | |
tree | c6525bd7bcc10e284b36678f96aab6a2bf4ef3a1 /lib | |
parent | f752c762185f7493a5420f461bc8e766db84fc60 (diff) | |
download | patchfoo-498eaa3edf1241abdc6180410db97254c70e2185.tar.gz patchfoo-498eaa3edf1241abdc6180410db97254c70e2185.zip |
Linkify newly created git blobs
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/' |