Add a link to the tree of the current commit.
This commit is contained in:
parent
e9aed022a4
commit
0e511a6273
|
@ -4,10 +4,15 @@ import ExternalAnchor from './external-anchor.js';
|
|||
|
||||
export default class SharedFooter extends Component {
|
||||
render() {
|
||||
const githubUrl = 'https://github.com/Bauke/blink';
|
||||
const versionText = `v${blinkVersion}/${blinkCommitHash}`;
|
||||
const versionUrl = `${githubUrl}/tree/${blinkCommitHash}`;
|
||||
|
||||
return html`
|
||||
<footer class="shared-footer">
|
||||
<${ExternalAnchor} text="GitHub" url="https://github.com/Bauke/blink" />
|
||||
<span> v${blinkVersion} (${blinkCommitHash})</span>
|
||||
<${ExternalAnchor} text="GitHub" url=${githubUrl} />
|
||||
${' '}
|
||||
<${ExternalAnchor} text=${versionText} url=${versionUrl} />
|
||||
</footer>
|
||||
`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue