# HG changeset patch # User Søren Løvborg # Date 2017-02-23 16:24:24 # Node ID 588c556aa00b3154080efe32f4cd34d6239bd383 # Parent 4e9caabef69c09818f392c1336b545bbf6668640 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"). diff --git a/kallithea/templates/changeset/changeset_file_comment.html b/kallithea/templates/changeset/changeset_file_comment.html --- a/kallithea/templates/changeset/changeset_file_comment.html +++ b/kallithea/templates/changeset/changeset_file_comment.html @@ -17,7 +17,7 @@ ${h.age(co.modified_at)} %if co.pull_request: ${_('on pull request')} - "${co.pull_request.title or _("No title")}" + "${co.pull_request.title or _("No title")}" %else: ${_('on this changeset')} %endif