1
Fork 0

Add a link to the tree of the current commit.

This commit is contained in:
Bauke 2022-01-02 21:36:00 +01:00
parent e9aed022a4
commit 0e511a6273
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 7 additions and 2 deletions

View File

@ -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>
`; `;
} }