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 {
|
export default class SharedFooter extends Component {
|
||||||
render() {
|
render() {
|
||||||
|
const githubUrl = 'https://github.com/Bauke/blink';
|
||||||
|
const versionText = `v${blinkVersion}/${blinkCommitHash}`;
|
||||||
|
const versionUrl = `${githubUrl}/tree/${blinkCommitHash}`;
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<footer class="shared-footer">
|
<footer class="shared-footer">
|
||||||
<${ExternalAnchor} text="GitHub" url="https://github.com/Bauke/blink" />
|
<${ExternalAnchor} text="GitHub" url=${githubUrl} />
|
||||||
<span> v${blinkVersion} (${blinkCommitHash})</span>
|
${' '}
|
||||||
|
<${ExternalAnchor} text=${versionText} url=${versionUrl} />
|
||||||
</footer>
|
</footer>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue