Roles: Speak of 'roles' not 'permissions'

This commit is contained in:
Eric Lippmann 2014-11-25 16:10:00 +01:00
parent bc339e927b
commit 9aa2f6f555

View File

@ -3,9 +3,9 @@
</div> </div>
<div class="content"> <div class="content">
<div> <div>
<h1><?= $this->translate('Permissions') ?></h1> <h1><?= $this->translate('Roles') ?></h1>
<?php /** @var \Icinga\Application\Config $roles */ if ($roles->isEmpty()): ?> <?php /** @var \Icinga\Application\Config $roles */ if ($roles->isEmpty()): ?>
<?= $this->translate('No permissions found.') ?> <?= $this->translate('No roles found.') ?>
<?php else: ?> <?php else: ?>
<table class="avp action" data-base-target="_next"> <table class="avp action" data-base-target="_next">
<thead> <thead>
@ -23,7 +23,7 @@
<td> <td>
<?= $this->escape($name) ?> <?= $this->escape($name) ?>
<div class="hidden"> <div class="hidden">
<a href="<?= $this->url('permissions/update', array('role' => $name)) ?>"></a> <a href="<?= $this->url('roles/update', array('role' => $name)) ?>"></a>
</div> </div>
</td> </td>
<td><?= $this->escape($role->permissions, 0, 50) ?></td> <td><?= $this->escape($role->permissions, 0, 50) ?></td>
@ -51,7 +51,7 @@
<td><?= $this->escape($role->users) ?></td> <td><?= $this->escape($role->users) ?></td>
<td><?= $this->escape($role->groups) ?></td> <td><?= $this->escape($role->groups) ?></td>
<td> <td>
<a href="<?= $this->url('permissions/remove', array('role' => $name)) ?>" <a href="<?= $this->url('roles/remove', array('role' => $name)) ?>"
title="<?= $this->translate('Remove role') ?>"> title="<?= $this->translate('Remove role') ?>">
<?= $this->icon('cancel') ?> <?= $this->icon('cancel') ?>
</a> </a>
@ -61,7 +61,7 @@
</tbody> </tbody>
</table> </table>
<?php endif ?> <?php endif ?>
<a data-base-target="_next" href="<?= $this->href('permissions/new') ?>"> <a data-base-target="_next" href="<?= $this->href('roles/new') ?>">
<?= $this->translate('New Role') ?> <?= $this->translate('New Role') ?>
</a> </a>
</div> </div>