Merge pull request 'Make git commit hash in footer clickable' (#6) from feature/clickable-commit-hash into main
Reviewed-on: #6
This commit is contained in:
commit
1d95025e7f
1 changed files with 12 additions and 1 deletions
|
@ -30,7 +30,18 @@ export function Footer() {
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-2">© {new Date().getFullYear()} Cheating Chelsea Exposed. All Rights Reserved.</p>
|
<p className="mt-2">© {new Date().getFullYear()} Cheating Chelsea Exposed. All Rights Reserved.</p>
|
||||||
<p className="mt-1 text-xs text-muted-foreground/50">
|
<p className="mt-1 text-xs text-muted-foreground/50">
|
||||||
Build: {process.env.NEXT_PUBLIC_GIT_COMMIT || 'development'}
|
Build: {process.env.NEXT_PUBLIC_GIT_COMMIT ? (
|
||||||
|
<a
|
||||||
|
href={`https://git.deco.sh/signal-works/cheatingchelsea/commit/${process.env.NEXT_PUBLIC_GIT_COMMIT}`}
|
||||||
|
className="hover:underline"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
{process.env.NEXT_PUBLIC_GIT_COMMIT}
|
||||||
|
</a>
|
||||||
|
) : (
|
||||||
|
'development'
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue