blue line fix

alphons <alphons@heijden.com> 19 Jul 2026, 14:51
959815c19219a303e03fb0ccbec4194ddfe98ef1
13 files changed
  • src/GitServer/Localization/ar.json
  • src/GitServer/Localization/de.json
  • src/GitServer/Localization/en.json
  • src/GitServer/Localization/es.json
  • src/GitServer/Localization/fr.json
  • src/GitServer/Localization/ja.json
  • src/GitServer/Localization/nl.json
  • src/GitServer/Localization/pt.json
  • src/GitServer/Localization/ru.json
  • src/GitServer/Localization/zh.json
  • src/GitServer/Services/RepositoryService.cs
  • src/GitServer/wwwroot/User/Profile.cshtml
  • src/GitServer/wwwroot/css/repo.css
diff --git a/src/GitServer/Localization/ar.json b/src/GitServer/Localization/ar.json
index 7770502..f66f3bb 100644
--- a/src/GitServer/Localization/ar.json
+++ b/src/GitServer/Localization/ar.json
@@ -23,6 +23,7 @@
"badge_private": "خاص",
"badge_public": "عام",
"updated_prefix": "تحديث",
+ "repo_card_collaborators": "مشارك مع:",
"index_recent_repos": "المستودعات الأخيرة",
"index_empty": "لا توجد مستودعات عامة حتى الآن.",
diff --git a/src/GitServer/Localization/de.json b/src/GitServer/Localization/de.json
index a3c7100..4617be6 100644
--- a/src/GitServer/Localization/de.json
+++ b/src/GitServer/Localization/de.json
@@ -23,6 +23,7 @@
"badge_private": "Privat",
"badge_public": "Öffentlich",
"updated_prefix": "Aktualisiert",
+ "repo_card_collaborators": "Geteilt mit:",
"index_recent_repos": "Neueste Repositories",
"index_empty": "Noch keine öffentlichen Repositories.",
diff --git a/src/GitServer/Localization/en.json b/src/GitServer/Localization/en.json
index 85dda30..8bc6b30 100644
--- a/src/GitServer/Localization/en.json
+++ b/src/GitServer/Localization/en.json
@@ -24,6 +24,7 @@
"badge_private": "Private",
"badge_public": "Public",
"updated_prefix": "Updated",
+ "repo_card_collaborators": "Shared with:",
"index_recent_repos": "Recent repositories",
"index_empty": "No public repositories yet.",
diff --git a/src/GitServer/Localization/es.json b/src/GitServer/Localization/es.json
index 600056f..a8c6e8f 100644
--- a/src/GitServer/Localization/es.json
+++ b/src/GitServer/Localization/es.json
@@ -23,6 +23,7 @@
"badge_private": "Privado",
"badge_public": "Público",
"updated_prefix": "Actualizado",
+ "repo_card_collaborators": "Compartido con:",
"index_recent_repos": "Repositorios recientes",
"index_empty": "Aún no hay repositorios públicos.",
diff --git a/src/GitServer/Localization/fr.json b/src/GitServer/Localization/fr.json
index 9fe036f..6d951a6 100644
--- a/src/GitServer/Localization/fr.json
+++ b/src/GitServer/Localization/fr.json
@@ -23,6 +23,7 @@
"badge_private": "Privé",
"badge_public": "Public",
"updated_prefix": "Mis à jour",
+ "repo_card_collaborators": "Partagé avec :",
"index_recent_repos": "Dépôts récents",
"index_empty": "Aucun dépôt public pour l'instant.",
diff --git a/src/GitServer/Localization/ja.json b/src/GitServer/Localization/ja.json
index 8ef8ec8..a11b21f 100644
--- a/src/GitServer/Localization/ja.json
+++ b/src/GitServer/Localization/ja.json
@@ -23,6 +23,7 @@
"badge_private": "プライベート",
"badge_public": "パブリック",
"updated_prefix": "更新",
+ "repo_card_collaborators": "共有先:",
"index_recent_repos": "最近のリポジトリ",
"index_empty": "公開リポジトリはまだありません。",
diff --git a/src/GitServer/Localization/nl.json b/src/GitServer/Localization/nl.json
index 3acdb01..fb5aa7f 100644
--- a/src/GitServer/Localization/nl.json
+++ b/src/GitServer/Localization/nl.json
@@ -24,6 +24,7 @@
"badge_private": "Privé",
"badge_public": "Publiek",
"updated_prefix": "Bijgewerkt",
+ "repo_card_collaborators": "Gedeeld met:",
"index_recent_repos": "Recente repositories",
"index_empty": "Nog geen publieke repositories.",
diff --git a/src/GitServer/Localization/pt.json b/src/GitServer/Localization/pt.json
index 3ceff16..4010767 100644
--- a/src/GitServer/Localization/pt.json
+++ b/src/GitServer/Localization/pt.json
@@ -23,6 +23,7 @@
"badge_private": "Privado",
"badge_public": "Público",
"updated_prefix": "Atualizado",
+ "repo_card_collaborators": "Compartilhado com:",
"index_recent_repos": "Repositórios recentes",
"index_empty": "Nenhum repositório público ainda.",
diff --git a/src/GitServer/Localization/ru.json b/src/GitServer/Localization/ru.json
index a1c1e40..bd936b8 100644
--- a/src/GitServer/Localization/ru.json
+++ b/src/GitServer/Localization/ru.json
@@ -23,6 +23,7 @@
"badge_private": "Приватный",
"badge_public": "Публичный",
"updated_prefix": "Обновлено",
+ "repo_card_collaborators": "Доступ есть у:",
"index_recent_repos": "Последние репозитории",
"index_empty": "Публичных репозиториев пока нет.",
diff --git a/src/GitServer/Localization/zh.json b/src/GitServer/Localization/zh.json
index 4b5648a..1d143f1 100644
--- a/src/GitServer/Localization/zh.json
+++ b/src/GitServer/Localization/zh.json
@@ -23,6 +23,7 @@
"badge_private": "私有",
"badge_public": "公开",
"updated_prefix": "更新于",
+ "repo_card_collaborators": "共享给:",
"index_recent_repos": "最近的仓库",
"index_empty": "暂无公开仓库。",
diff --git a/src/GitServer/Services/RepositoryService.cs b/src/GitServer/Services/RepositoryService.cs
index 5311613..c2a21ac 100644
--- a/src/GitServer/Services/RepositoryService.cs
+++ b/src/GitServer/Services/RepositoryService.cs
@@ -87,6 +87,7 @@ public class RepositoryService(AppDbContext db,
{
var q = _db.Repositories
.Include(r => r.Owner)
+ .Include(r => r.Accesses).ThenInclude(a => a.User)
.Where(r => r.OwnerId == userId);
if (!includePrivate)
diff --git a/src/GitServer/wwwroot/User/Profile.cshtml b/src/GitServer/wwwroot/User/Profile.cshtml
index 52d652a..ae41cde 100644
--- a/src/GitServer/wwwroot/User/Profile.cshtml
+++ b/src/GitServer/wwwroot/User/Profile.cshtml
@@ -44,6 +44,13 @@
{
<p class="repo-description">@repo.Description</p>
}
+ @if (repo.IsPrivate && repo.Accesses.Any())
+ {
+ <p class="text-muted repo-collaborators">
+ @L["repo_card_collaborators"]
+ @string.Join(", ", repo.Accesses.Select(a => a.User.UserName))
+ </p>
+ }
<div class="repo-meta">
<span class="text-muted">@L["updated_prefix"] @repo.UpdatedAt.ToString("d MMM yyyy")</span>
</div>
diff --git a/src/GitServer/wwwroot/css/repo.css b/src/GitServer/wwwroot/css/repo.css
index adec602..f8524d7 100644
--- a/src/GitServer/wwwroot/css/repo.css
+++ b/src/GitServer/wwwroot/css/repo.css
@@ -37,7 +37,6 @@
border-bottom: 2px solid transparent;
white-space: nowrap;
transition: color 0.15s, border-color 0.15s;
- margin-bottom: -1px;
}
.repo-nav-link:hover { color: var(--text); text-decoration: none; }