diff --git a/ui/src/pages/ProjectPage.tsx b/ui/src/pages/ProjectPage.tsx index a8def26..ba345ac 100644 --- a/ui/src/pages/ProjectPage.tsx +++ b/ui/src/pages/ProjectPage.tsx @@ -54,7 +54,7 @@ export function ProjectPage() { <> -

{source}{repo}

+

{source}{repo}

{langs && }
@@ -89,6 +89,15 @@ export function ProjectPage() { ); } +function repoUrl(source: string, host: string, repo: string): string { + switch (source) { + case 'github': return `https://github.com/${repo}`; + case 'gitea': return `https://${host}/${repo}`; + case 'hg': return `https://${host}/${repo}`; + default: return '#'; + } +} + function forgeIcon(source: string): string { switch (source) { case 'github': return '/github.svg';