changeset 6509:588c556aa00b

comments: for PR comments, link directly to comment on PR page Comments with approval changes made in the context of PRs also show up on the individual PR changesets, and currently link to the (top of the) PR page. If the user wants to see the surrounding comments, it can be difficult to find the comment. This change makes the link go to the comment anchor on the PR page, so the user immediately sees the relevant comment thread. The PR metadata is still readily available (by scrolling up or pressing "Home").
author Søren Løvborg <sorenl@unity3d.com>
date Thu, 23 Feb 2017 16:24:24 +0100
parents 4e9caabef69c
children 3505a6be2988
files kallithea/templates/changeset/changeset_file_comment.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/changeset/changeset_file_comment.html	Thu Feb 16 16:15:44 2017 +0100
+++ b/kallithea/templates/changeset/changeset_file_comment.html	Thu Feb 23 16:24:24 2017 +0100
@@ -17,7 +17,7 @@
               ${h.age(co.modified_at)}
               %if co.pull_request:
                 ${_('on pull request')}
-                <a href="${co.pull_request.url()}">"${co.pull_request.title or _("No title")}"</a>
+                <a href="${co.url()}">"${co.pull_request.title or _("No title")}"</a>
               %else:
                 ${_('on this changeset')}
               %endif