diff --git a/app/views/groups/index.rb b/app/views/groups/index.rb index 895c98382..f6b054223 100644 --- a/app/views/groups/index.rb +++ b/app/views/groups/index.rb @@ -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 } diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 3b77710fa..a3c895334 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -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: diff --git a/config/locales/de.yml b/config/locales/de.yml index bde4f1206..5ace118c2 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -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: diff --git a/config/locales/en.yml b/config/locales/en.yml index 080668467..e825532e8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: diff --git a/config/locales/es.yml b/config/locales/es.yml index 5c0ea45f6..5708a2895 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -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: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 8c961e00e..f2ce46453 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -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: diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 7f7a9a99a..a73bef10e 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -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: diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 9fd777a0a..4b2476dd1 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -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: diff --git a/config/locales/pl.yml b/config/locales/pl.yml index a6ff21976..c9018dfdd 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -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: diff --git a/config/locales/pt.yml b/config/locales/pt.yml index de43f493a..a719161e1 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -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: diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 6be75980e..602f8157a 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -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: diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml index 9adc52c18..604c33a18 100644 --- a/config/locales/zh-CN.yml +++ b/config/locales/zh-CN.yml @@ -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: