add open invite count to group list

This commit is contained in:
James Smith committed 2026-01-23 12:18:57 +00:00
1 parent cd02e383b8
commit 2d6449084e
12 files changed
+36 -12

No files matched your search

+3 -1
View File
@@ -16,6 +16,7 @@ class Views::Groups::Index < Views::Base
tr do
th { Group.human_attribute_name :name }
th { Group.human_attribute_name :memberships }
th { Group.human_attribute_name :invitations }
th { Group.human_attribute_name :description }
th { Group.human_attribute_name :typed_id }
th
@@ -23,7 +24,8 @@ class Views::Groups::Index < Views::Base
@groups.each do |group|
tr do
td { group.name }
td { t("views.groups.index.member_count", count: group.members.count) }
td { t("views.groups.index.member_count", count: group.members.active.count) }
td { t("views.groups.index.invite_count", count: group.members.invited.count) if group.members.invited.any? }
td { group.description }
td { CopyableText text: group.typed_id, label: t("views.groups.index.copy") }
td { GoButton label: t("views.groups.edit.title"), href: edit_creator_group_path(@creator, group), icon: "pencil", variant: :primary }
+3 -1
View File
@@ -39,7 +39,8 @@ cs:
object: Objekt
group:
description: Popis
membership:
invitations:
memberships:
name: Jméno
typed_id:
library:
@@ -910,6 +911,7 @@ cs:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ de:
object: Objekt
group:
description: Beschreibung
membership:
invitations:
memberships:
name: Name
typed_id:
library:
@@ -912,6 +913,7 @@ de:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ en:
object: Object
group:
description: Description
membership: Membership
invitations: Invitations
memberships: Memberships
name: Name
typed_id: Permission ID
library:
@@ -910,6 +911,7 @@ en:
index:
copy: Copy ID to clipboard for use in permission settings.
description: User Groups are collections of local instance users, useful for managing things like Patreon or Liberapay subscribers. You can grant a group permissions on any object by using its permission ID, just like a site role or individual user.
invite_count: "%{count} open invitations"
member_count: "%{count} members"
title: User Groups
new:
+3 -1
View File
@@ -39,7 +39,8 @@ es:
object: Objeto
group:
description: Descripción
membership: Afiliación
invitations:
memberships:
name: Nombre
typed_id: Permiso ID
library:
@@ -910,6 +911,7 @@ es:
index:
copy: Copie el ID en el portapapeles para utilizarlo en la configuración de permisos.
description: Los Grupos de Usuarios son colecciones de usuarios de instancias locales, útiles para gestionar cosas como suscriptores de Patreon o Liberapay. Puedes conceder permisos a un grupo sobre cualquier objeto utilizando su ID de permiso, al igual que un rol de sitio o un usuario individual.
invite_count:
member_count: "%{count} miembros"
title: Grupos de usuarios
new:
+3 -1
View File
@@ -39,7 +39,8 @@ fr:
object: Objet
group:
description: Description
membership:
invitations:
memberships:
name: Nom
typed_id:
library:
@@ -913,6 +914,7 @@ fr:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ ja:
object:
group:
description: ノート
membership:
invitations:
memberships:
name: 名前
typed_id:
library:
@@ -910,6 +911,7 @@ ja:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ nl:
object: Object
group:
description: Beschrijving
membership:
invitations:
memberships:
name: Naam
typed_id:
library:
@@ -910,6 +911,7 @@ nl:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ pl:
object: Obiekt
group:
description: Opis
membership:
invitations:
memberships:
name: Nazwa
typed_id:
library:
@@ -910,6 +911,7 @@ pl:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ pt:
object:
group:
description:
membership:
invitations:
memberships:
name:
typed_id:
library:
@@ -910,6 +911,7 @@ pt:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ ru:
object:
group:
description: Примечания
membership:
invitations:
memberships:
name: Имя
typed_id:
library:
@@ -910,6 +911,7 @@ ru:
index:
copy:
description:
invite_count:
member_count:
title:
new:
+3 -1
View File
@@ -39,7 +39,8 @@ zh-CN:
object:
group:
description: 说明
membership:
invitations:
memberships:
name: 名称
typed_id:
library:
@@ -910,6 +911,7 @@ zh-CN:
index:
copy:
description:
invite_count:
member_count:
title:
new: