Skip to content

Commit

Permalink
Merge pull request #63 from shayanb/master
Browse files Browse the repository at this point in the history
Add link to Github commit
  • Loading branch information
pomber authored Feb 10, 2019
2 parents ad42688 + 62104a0 commit 06fee9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ function CommitInfo({ commit, move, onClick }) {
{commit.author.login}
</div>
<div style={{ fontSize: "0.85rem", opacity: "0.9" }}>
on {commit.date.toDateString()}
{isActive && commit.commitUrl ? (
<a href={commit.commitUrl} target="_blank">
on {commit.date.toDateString()}
</a>
) : (
`on ${commit.date.toDateString()}`
)}
</div>
</div>
</div>
Expand Down

0 comments on commit 06fee9e

Please sign in to comment.