Compare commits

..

2 commits

Author SHA1 Message Date
Decobus
1d95025e7f Merge pull request 'Make git commit hash in footer clickable' (#6) from feature/clickable-commit-hash into main
All checks were successful
CI / test (push) Successful in 11m8s
Deploy / deploy (push) Successful in 11m30s
Reviewed-on: #6
2025-07-17 17:40:13 +03:00
Derek Slenk
84a4f7e9df Make git commit hash in footer clickable
All checks were successful
CI / test (push) Successful in 10m36s
CI / test (pull_request) Successful in 11m8s
- Added link to actual commit on git.deco.sh
- Commit hash now opens in new tab with proper attributes
- Maintains 'development' text when no commit hash available

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-17 10:32:36 -04:00

View file

@ -30,7 +30,18 @@ export function Footer() {
</p>
<p className="mt-2">&copy; {new Date().getFullYear()} Cheating Chelsea Exposed. All Rights Reserved.</p>
<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>
</div>
</footer>