user/show.phtml: Fix presentation and behaviour of the membership link

* Removed base target _next, _self feels more natural
* Removed obsolete link title, it has already a sufficient label
* Restored previous link label, we're using the term membership everywhere else, so why should we make an exception here?

refs #10367
This commit is contained in:
Johannes Meyer 2015-10-15 14:02:14 +02:00
parent f6e5fac23e
commit 4d5fde768a

View File

@ -54,17 +54,15 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
<div class="content memberships"> <div class="content memberships">
<?php if ($showCreateMembershipLink): ?> <?php if ($showCreateMembershipLink): ?>
<?= $this->qlink( <?= $this->qlink(
$this->translate('Add User to Group') , $this->translate('Create New Membership') ,
'user/createmembership', 'user/createmembership',
array( array(
'backend' => $backend->getName(), 'backend' => $backend->getName(),
'user' => $user->user_name 'user' => $user->user_name
), ),
array( array(
'class' => 'button-link', 'icon' => 'plus',
'data-base-target' => '_next', 'class' => 'button-link'
'icon' => 'plus',
'title' => $this->translate('Add user to user group')
) )
) ?> ) ?>
<?php endif ?> <?php endif ?>