Commit 55d748ca authored by Liam Sharpe's avatar Liam Sharpe
Browse files

Added word wrap to the username, styled external auth method - Bug #1465107

behatnotneeded

Change-Id: I3284e09c4277385eec27b176e8f18f1024d6c536
parent 4cccccfb
......@@ -213,8 +213,8 @@ if (count($authinstances) > 1) {
function is_external(id) {
if (jQuery.inArray(authinstanceid,externalauths) != -1) {
// is external option so show external auth field and help text rows
jQuery('#edituser_site_remoteusername_container').css('display','table-row');
jQuery('#edituser_site_remoteusername_container').next('tr').css('display','table-row');
jQuery('#edituser_site_remoteusername_container').css('display','block');
jQuery('#edituser_site_remoteusername_container').next('div').css('display','block');
if (remoteusernames[id]) {
// if value exists in auth_remote_user display it
jQuery('#edituser_site_remoteusername').val(remoteusernames[id]);
......@@ -226,7 +226,7 @@ if (count($authinstances) > 1) {
else {
// is internal option so hide external auth field and help text rows
jQuery('#edituser_site_remoteusername_container').css('display','none');
jQuery('#edituser_site_remoteusername_container').next('tr').css('display','none');
jQuery('#edituser_site_remoteusername_container').next('div').css('display','none');
}
}
});
......
......@@ -860,6 +860,7 @@ $string['create'] = '3 - Create';
// Login as
$string['loginas'] = 'Log in as';
$string['loginasthisuser'] = 'Log in as this user';
$string['loginasuser'] = 'Log in as %s';
$string['becomeadminagain'] = 'Become %s again';
// Login-as exceptions
......
......@@ -29,7 +29,7 @@
<div class="user-panel">
<div class="panel panel-default">
<h3 class="panel-heading profile-block">
<a href="{profile_url($user)}">
<a href="{profile_url($user)}" class="username">
{$user|display_name}
</a>
<a href="{profile_url($user)}" class="user-icon">
......@@ -39,7 +39,7 @@
{if $loginas}
<div id="loginas">
<a class="btn btn-link" href="{$WWWROOT}admin/users/changeuser.php?id={$user->id}">
{str tag=loginas section=admin}
{str tag=loginasthisuser section=admin}
</a>
</div>
{/if}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment