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
1 changed files with 3 additions and 5 deletions

View File

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