Skip to content

Commit

Permalink
Merge "Make blame annotation as link"
Browse files Browse the repository at this point in the history
  • Loading branch information
milutin authored and Gerrit Code Review committed Feb 14, 2020
2 parents 25edb49 + 2785ddf commit 8bb537d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,9 @@
const blameNode = this._createElement('span',
isStartOfRange ? 'startOfRange' : '');

const shaNode = this._createElement('span', 'blameDate');
const shaNode = this._createElement('a', 'blameDate');
shaNode.innerText = `${date}`;
shaNode.onclick = function() {
location.href = '/q/' + commit.id;
};
shaNode.setAttribute('href', `/q/${commit.id}`);
blameNode.appendChild(shaNode);

const shortName = commit.author.split(' ')[0];
Expand Down
2 changes: 1 addition & 1 deletion polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
td.blame .blameDate {
font-family: var(--monospace-font-family);
color: var(--link-color);
cursor: pointer;
text-decoration: none;
}
.full-width td.blame {
overflow: hidden;
Expand Down

0 comments on commit 8bb537d

Please sign in to comment.