summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Locale/da_DK/translations.php10
-rw-r--r--app/Locale/de_DE/translations.php10
-rw-r--r--app/Locale/es_ES/translations.php10
-rw-r--r--app/Locale/fi_FI/translations.php10
-rw-r--r--app/Locale/fr_FR/translations.php10
-rw-r--r--app/Locale/hu_HU/translations.php10
-rw-r--r--app/Locale/it_IT/translations.php10
-rw-r--r--app/Locale/ja_JP/translations.php10
-rw-r--r--app/Locale/pl_PL/translations.php10
-rw-r--r--app/Locale/pt_BR/translations.php10
-rw-r--r--app/Locale/ru_RU/translations.php10
-rw-r--r--app/Locale/sv_SE/translations.php10
-rw-r--r--app/Locale/th_TH/translations.php10
-rw-r--r--app/Locale/zh_CN/translations.php10
-rw-r--r--app/Template/project/users.php56
15 files changed, 131 insertions, 65 deletions
diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php
index a0c04610..9a10ba74 100644
--- a/app/Locale/da_DK/translations.php
+++ b/app/Locale/da_DK/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Tillad denne bruger',
'Only those users have access to this project:' => 'Kunne disse brugere har adgang til dette projekt:',
'Don\'t forget that administrators have access to everything.' => 'Glem ikke at administratorer har adgang til alt.',
- 'revoke' => 'fjern',
+ 'Revoke' => 'Fjern',
'List of authorized users' => 'Liste over autoriserede brugere',
'User' => 'Bruger',
'Nobody have access to this project.' => 'Ingen har adgang til dette projekt.',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php
index b03ef801..c75b6495 100644
--- a/app/Locale/de_DE/translations.php
+++ b/app/Locale/de_DE/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Diesen Benutzer autorisieren',
'Only those users have access to this project:' => 'Nur diese Benutzer haben Zugriff zum Projekt:',
'Don\'t forget that administrators have access to everything.' => 'Nicht vergessen: Administratoren haben überall Zugriff.',
- 'revoke' => 'entfernen',
+ 'Revoke' => 'Entfernen',
'List of authorized users' => 'Liste der autorisierten Benutzer',
'User' => 'Benutzer',
'Nobody have access to this project.' => 'Niemand hat Zugriff auf dieses Projekt.',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php
index 527e3b95..b94b4537 100644
--- a/app/Locale/es_ES/translations.php
+++ b/app/Locale/es_ES/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Autorizar este usuario',
'Only those users have access to this project:' => 'Solo estos usuarios tienen acceso a este proyecto:',
'Don\'t forget that administrators have access to everything.' => 'No olvide que los administradores tienen acceso a todo.',
- 'revoke' => 'revocar',
+ 'Revoke' => 'Revocar',
'List of authorized users' => 'Lista de los usuarios autorizados',
'User' => 'Usuario',
// 'Nobody have access to this project.' => '',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php
index a78ea6d4..53404026 100644
--- a/app/Locale/fi_FI/translations.php
+++ b/app/Locale/fi_FI/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Salli tämä projekti',
'Only those users have access to this project:' => 'Vain näillä käyttäjillä on pääsy projektiin:',
'Don\'t forget that administrators have access to everything.' => 'Muista että ylläpitäjät pääsevät kaikkialle.',
- 'revoke' => 'poista',
+ 'Revoke' => 'Poista',
'List of authorized users' => 'Sallittujen käyttäjien lista',
'User' => 'Käyttäjät',
// 'Nobody have access to this project.' => '',
@@ -609,8 +609,8 @@ return array(
'Default swimlane' => 'Oletuskaista',
'Do you really want to remove this swimlane: "%s"?' => 'Haluatko varmasti poistaa tämän kaistan: "%s"?',
'Inactive swimlanes' => 'Passiiviset kaistat',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
'Remove a swimlane' => 'Poista kaista',
'Rename' => 'Uudelleennimeä',
'Show default swimlane' => 'Näytä oletuskaista',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php
index ef52d333..2b8c034f 100644
--- a/app/Locale/fr_FR/translations.php
+++ b/app/Locale/fr_FR/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Autoriser cet utilisateur',
'Only those users have access to this project:' => 'Seulement ces utilisateurs ont accès à ce projet :',
'Don\'t forget that administrators have access to everything.' => 'N\'oubliez pas que les administrateurs ont accès à tout.',
- 'revoke' => 'révoquer',
+ 'Revoke' => 'Révoquer',
'List of authorized users' => 'Liste des utilisateurs autorisés',
'User' => 'Utilisateur',
'Nobody have access to this project.' => 'Personne n\'est autorisé à accéder au projet.',
@@ -609,8 +609,8 @@ return array(
'Default swimlane' => 'Swimlane par défaut',
'Do you really want to remove this swimlane: "%s"?' => 'Voulez-vous vraiment supprimer cette swimlane : « %s » ?',
'Inactive swimlanes' => 'Swimlanes inactives',
- 'set manager' => 'mettre gérant',
- 'set user' => 'mettre utilisateur',
+ 'Set project manager' => 'Mettre chef de projet',
+ 'Set project member' => 'Mettre membre du projet',
'Remove a swimlane' => 'Supprimer une swimlane',
'Rename' => 'Renommer',
'Show default swimlane' => 'Afficher la swimlane par défaut',
@@ -633,4 +633,8 @@ return array(
'Help on Gitlab webhooks' => 'Aide sur les webhooks Gitlab',
'Integrations' => 'Intégrations',
'Integration with third-party services' => 'Intégration avec des services externes',
+ 'Role for this project' => 'Rôle pour ce projet',
+ 'Project manager' => 'Chef de projet',
+ 'Project member' => 'Membre du projet',
+ 'A project manager can change the settings of the project and have more privileges than a standard user.' => 'Un chef de projet peut changer les paramètres du projet et possède plus de privilèges qu\'un utilisateur standard.',
);
diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php
index 5dbbe988..242e74ce 100644
--- a/app/Locale/hu_HU/translations.php
+++ b/app/Locale/hu_HU/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Engedélyezi ezt a felhasználót',
'Only those users have access to this project:' => 'Csak ezek a felhasználók férhetnek hozzá a projekthez:',
'Don\'t forget that administrators have access to everything.' => 'Ne felejtsük el: a rendszergazdák mindenhez hozzáférnek.',
- 'revoke' => 'visszavon',
+ 'Revoke' => 'Visszavon',
'List of authorized users' => 'Az engedélyezett felhasználók',
'User' => 'Felhasználó',
'Nobody have access to this project.' => 'Senkinek sincs hozzáférése a projekthez.',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php
index 7bd48a2b..0b047386 100644
--- a/app/Locale/it_IT/translations.php
+++ b/app/Locale/it_IT/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Permettere a questo utente',
'Only those users have access to this project:' => 'Solo questi utenti hanno accesso a questo progetto:',
'Don\'t forget that administrators have access to everything.' => 'Non dimenticare che gli amministratori hanno accesso a tutto.',
- 'revoke' => 'revocare',
+ 'Revoke' => 'Revocare',
'List of authorized users' => 'Lista di utenti autorizzati',
'User' => 'Utente',
// 'Nobody have access to this project.' => '',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php
index b519d68c..16f9928b 100644
--- a/app/Locale/ja_JP/translations.php
+++ b/app/Locale/ja_JP/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'このユーザを許可する',
'Only those users have access to this project:' => 'これらのユーザのみがプロジェクトにアクセスできます:',
'Don\'t forget that administrators have access to everything.' => '管理者には全ての権限が与えられます。',
- 'revoke' => '許可を取り下げる',
+ 'Revoke' => '許可を取り下げる',
'List of authorized users' => '許可されたユーザ',
'User' => 'ユーザ',
'Nobody have access to this project.' => 'だれもプロジェクトにアクセスできません。',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php
index bcab4874..f385d47c 100644
--- a/app/Locale/pl_PL/translations.php
+++ b/app/Locale/pl_PL/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Dodaj użytkownika',
'Only those users have access to this project:' => 'Użytkownicy mający dostęp:',
'Don\'t forget that administrators have access to everything.' => 'Pamiętaj: Administratorzy mają zawsze dostęp do wszystkiego!',
- 'revoke' => 'odbierz dostęp',
+ 'Revoke' => 'Odbierz dostęp',
'List of authorized users' => 'Lista użytkowników mających dostęp',
'User' => 'Użytkownik',
// 'Nobody have access to this project.' => '',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php
index 48c15f61..e5a2c880 100644
--- a/app/Locale/pt_BR/translations.php
+++ b/app/Locale/pt_BR/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Permitir esse usuário',
'Only those users have access to this project:' => 'Somente estes usuários têm acesso a este projeto:',
'Don\'t forget that administrators have access to everything.' => 'Não esqueça que administradores têm acesso a tudo.',
- 'revoke' => 'revogar',
+ 'Revoke' => 'Revogar',
'List of authorized users' => 'Lista de usuários autorizados',
'User' => 'Usuário',
'Nobody have access to this project.' => 'Ninguém tem acesso a este projeto.',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php
index 08fc35de..445bb2c4 100644
--- a/app/Locale/ru_RU/translations.php
+++ b/app/Locale/ru_RU/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Разрешить этого пользователя',
'Only those users have access to this project:' => 'Только эти пользователи имеют доступ к проекту :',
'Don\'t forget that administrators have access to everything.' => 'Помните, администратор имеет доступ ко всему.',
- 'revoke' => 'отозвать',
+ 'Revoke' => 'отозвать',
'List of authorized users' => 'Список авторизованных пользователей',
'User' => 'Пользователь',
'Nobody have access to this project.' => 'Ни у кого нет доступа к этому проекту',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php
index b33983ca..5a19e621 100644
--- a/app/Locale/sv_SE/translations.php
+++ b/app/Locale/sv_SE/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'Tillåt användare',
'Only those users have access to this project:' => 'Bara de användarna har tillgång till detta projekt.',
'Don\'t forget that administrators have access to everything.' => 'Glöm inte att administratörerna har rätt att göra allt.',
- 'revoke' => 'Dra tillbaka behörighet',
+ 'Revoke' => 'Dra tillbaka behörighet',
'List of authorized users' => 'Lista med behöriga användare',
'User' => 'Användare',
'Nobody have access to this project.' => 'Ingen har tillgång till detta projekt.',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php
index 0dbe486c..60e68711 100644
--- a/app/Locale/th_TH/translations.php
+++ b/app/Locale/th_TH/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => 'อนุญาตผู้ใช้นี้',
'Only those users have access to this project:' => 'ผู้ใช้ที่สามารถเข้าถึงโปรเจคนี้:',
'Don\'t forget that administrators have access to everything.' => 'อย่าลืมผู้ดูแลระบบสามารถเข้าถึงได้ทุกอย่าง',
- 'revoke' => 'ยกเลิก',
+ 'Revoke' => 'ยกเลิก',
'List of authorized users' => 'รายชื่อผู้ใช้ที่ได้รับการยืนยัน',
'User' => 'ผู้ใช้',
// 'Nobody have access to this project.' => '',
@@ -609,8 +609,8 @@ return array(
// 'Default swimlane' => '',
// 'Do you really want to remove this swimlane: "%s"?' => '',
// 'Inactive swimlanes' => '',
- // 'set manager' => '',
- // 'set user' => '',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
// 'Remove a swimlane' => '',
// 'Rename' => '',
// 'Show default swimlane' => '',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php
index b77a21d0..6b793bf6 100644
--- a/app/Locale/zh_CN/translations.php
+++ b/app/Locale/zh_CN/translations.php
@@ -194,7 +194,7 @@ return array(
'Allow this user' => '允许该用户',
'Only those users have access to this project:' => '只有这些用户有该项目的存取权限:',
'Don\'t forget that administrators have access to everything.' => '别忘了管理员有一切的权限。',
- 'revoke' => '撤销',
+ 'Revoke' => '撤销',
'List of authorized users' => '已授权的用户列表',
'User' => '用户',
'Nobody have access to this project.' => '无用户可以访问此项目.',
@@ -609,8 +609,8 @@ return array(
'Default swimlane' => '默认泳道',
'Do you really want to remove this swimlane: "%s"?' => '确定要删除泳道:"%s"?',
'Inactive swimlanes' => '非活动泳道',
- 'set manager' => '设为管理员',
- 'set user' => '设为用户',
+ // 'Set project manager' => '',
+ // 'Set project member' => '',
'Remove a swimlane' => '删除泳道',
'Rename' => '重命名',
'Show default swimlane' => '显示默认泳道',
@@ -633,4 +633,8 @@ return array(
// 'Help on Gitlab webhooks' => '',
// 'Integrations' => '',
// 'Integration with third-party services' => '',
+ // 'Role for this project' => '',
+ // 'Project manager' => '',
+ // 'Project member' => '',
+ // 'A project manager can change the settings of the project and have more privileges than a standard user.' => '',
);
diff --git a/app/Template/project/users.php b/app/Template/project/users.php
index ac27237c..da5da392 100644
--- a/app/Template/project/users.php
+++ b/app/Template/project/users.php
@@ -3,34 +3,37 @@
</div>
<?php if ($project['is_everybody_allowed']): ?>
- <div class="alert alert-info"><?= t('Everybody have access to this project.') ?></div>
+ <div class="alert"><?= t('Everybody have access to this project.') ?></div>
<?php else: ?>
<?php if (empty($users['allowed'])): ?>
<div class="alert alert-error"><?= t('Nobody have access to this project.') ?></div>
<?php else: ?>
- <div class="alert alert-info">
- <p><?= t('Only those users have access to this project:') ?></p>
- <ul>
- <?php foreach ($users['allowed'] as $user_id => $username): ?>
- <li>
- <strong><?= $this->e($username) ?></strong>
- <?php $is_owner = array_key_exists($user_id, $users['owners']);
- if ($is_owner): ?> [owner] <?php endif ?>
- <?php if ($project['is_private'] == 0): ?>
- <?php if ($is_owner): ?>
- (<a href=<?= $this->u('project', 'setOwner', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 0), true) ?> ><?= t('set user') ?></a>
- <?php else: ?>
- (<a href=<?= $this->u('project', 'setOwner', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 1), true) ?> ><?= t('set manager') ?></a>
- <?php endif ?>
- or
- <?= $this->a(t('revoke'), 'project', 'revoke', array('project_id' => $project['id'], 'user_id' => $user_id), true) ?>)
- <?php endif ?>
- </li>
- <?php endforeach ?>
- </ul>
- <p><?= t('Don\'t forget that administrators have access to everything.') ?></p>
- </div>
+ <table>
+ <tr>
+ <th><?= t('User') ?></th>
+ <th><?= t('Role for this project') ?></th>
+ <th><?= t('Actions') ?></th>
+ </tr>
+ <?php foreach ($users['allowed'] as $user_id => $username): ?>
+ <tr>
+ <td><?= $this->e($username) ?></td>
+ <td><?= isset($users['owners'][$user_id]) ? t('Project manager') : t('Project member') ?></td>
+ <td>
+ <ul>
+ <li><?= $this->a(t('Revoke'), 'project', 'revoke', array('project_id' => $project['id'], 'user_id' => $user_id), true) ?></li>
+ <li>
+ <?php if (isset($users['owners'][$user_id])): ?>
+ <?= $this->a(t('Set project member'), 'project', 'setOwner', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 0), true) ?>
+ <?php else: ?>
+ <?= $this->a(t('Set project manager'), 'project', 'setOwner', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 1), true) ?>
+ <?php endif ?>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ <?php endforeach ?>
+ </table>
<?php endif ?>
<?php if ($project['is_private'] == 0 && ! empty($users['not_allowed'])): ?>
@@ -65,3 +68,10 @@
</div>
</form>
<?php endif ?>
+
+<div class="alert alert-info">
+ <ul>
+ <li><?= t('A project manager can change the settings of the project and have more privileges than a standard user.') ?></li>
+ <li><?= t('Don\'t forget that administrators have access to everything.') ?></li>
+ </ul>
+</div>