diff --git a/ui/src/pages/ProjectPage.tsx b/ui/src/pages/ProjectPage.tsx
index 756fb97..a8def26 100644
--- a/ui/src/pages/ProjectPage.tsx
+++ b/ui/src/pages/ProjectPage.tsx
@@ -54,8 +54,7 @@ export function ProjectPage() {
<>
- {repo}
- {source}
+
{repo}
{langs && }
@@ -90,6 +89,15 @@ export function ProjectPage() {
);
}
+function forgeIcon(source: string): string {
+ switch (source) {
+ case 'github': return '/github.svg';
+ case 'gitea': return '/gitea.svg';
+ case 'hg': return '/mozilla.svg';
+ default: return '/github.svg';
+ }
+}
+
function LanguageBar({ languages }: { languages: Record }) {
const total = Object.values(languages).reduce((a, b) => a + b, 0);
if (total === 0) return null;