diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-05 20:31:27 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-05 20:31:27 -0500 |
commit | e9fedf3e5cd63aea4da7a71f6647ee427c62fa49 (patch) | |
tree | abc2de5aebace4a2d7c94805552264dab6b10bc7 /app/Template/group | |
parent | 346b8312e5ac877ce3192c2db3a26b500018bbb5 (diff) |
Rewrite of the authentication and authorization system
Diffstat (limited to 'app/Template/group')
-rw-r--r-- | app/Template/group/dissociate.php | 2 | ||||
-rw-r--r-- | app/Template/group/index.php | 4 | ||||
-rw-r--r-- | app/Template/group/remove.php | 2 | ||||
-rw-r--r-- | app/Template/group/users.php | 2 |
4 files changed, 1 insertions, 9 deletions
diff --git a/app/Template/group/dissociate.php b/app/Template/group/dissociate.php index 2b0b1af4..e1c60764 100644 --- a/app/Template/group/dissociate.php +++ b/app/Template/group/dissociate.php @@ -1,11 +1,9 @@ <section id="main"> <div class="page-header"> - <?php if ($this->user->isAdmin()): ?> <ul> <li><i class="fa fa-users fa-fw"></i><?= $this->url->link(t('View all groups'), 'group', 'index') ?></li> <li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('View group members'), 'group', 'users', array('group_id' => $group['id'])) ?></li> </ul> - <?php endif ?> </div> <div class="confirm"> <p class="alert alert-info"><?= t('Do you really want to remove the user "%s" from the group "%s"?', $user['name'] ?: $user['username'], $group['name']) ?></p> diff --git a/app/Template/group/index.php b/app/Template/group/index.php index 24de02a0..4aea0873 100644 --- a/app/Template/group/index.php +++ b/app/Template/group/index.php @@ -1,11 +1,9 @@ <section id="main"> <div class="page-header"> - <?php if ($this->user->isAdmin()): ?> <ul> <li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('All users'), 'user', 'index') ?></li> <li><i class="fa fa-user-plus fa-fw"></i><?= $this->url->link(t('New group'), 'group', 'create') ?></li> </ul> - <?php endif ?> </div> <?php if ($paginator->isEmpty()): ?> <p class="alert"><?= t('There is no group.') ?></p> @@ -31,7 +29,7 @@ <td> <ul> <li><?= $this->url->link(t('Add group member'), 'group', 'associate', array('group_id' => $group['id'])) ?></li> - <li><?= $this->url->link(t('Users'), 'group', 'users', array('group_id' => $group['id'])) ?></li> + <li><?= $this->url->link(t('Members'), 'group', 'users', array('group_id' => $group['id'])) ?></li> <li><?= $this->url->link(t('Edit'), 'group', 'edit', array('group_id' => $group['id'])) ?></li> <li><?= $this->url->link(t('Remove'), 'group', 'confirm', array('group_id' => $group['id'])) ?></li> </ul> diff --git a/app/Template/group/remove.php b/app/Template/group/remove.php index 48da91d5..1cb007b1 100644 --- a/app/Template/group/remove.php +++ b/app/Template/group/remove.php @@ -1,11 +1,9 @@ <section id="main"> <div class="page-header"> - <?php if ($this->user->isAdmin()): ?> <ul> <li><i class="fa fa-users fa-fw"></i><?= $this->url->link(t('View all groups'), 'group', 'index') ?></li> <li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('View group members'), 'group', 'users', array('group_id' => $group['id'])) ?></li> </ul> - <?php endif ?> </div> <div class="confirm"> <p class="alert alert-info"><?= t('Do you really want to remove this group: "%s"?', $group['name']) ?></p> diff --git a/app/Template/group/users.php b/app/Template/group/users.php index 56ad82cf..f79cb9ad 100644 --- a/app/Template/group/users.php +++ b/app/Template/group/users.php @@ -1,11 +1,9 @@ <section id="main"> <div class="page-header"> - <?php if ($this->user->isAdmin()): ?> <ul> <li><i class="fa fa-users fa-fw"></i><?= $this->url->link(t('View all groups'), 'group', 'index') ?></li> <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('Add group member'), 'group', 'associate', array('group_id' => $group['id'])) ?></li> </ul> - <?php endif ?> </div> <?php if ($paginator->isEmpty()): ?> <p class="alert"><?= t('There is no user in this group.') ?></p> |