diff options
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/personal.php | 2 | ||||
-rw-r--r-- | settings/templates/users.php | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php index c488623a088..d4a0e3b9480 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -80,6 +80,7 @@ if($_['passwordChangeSupported']) { } ?> +<?php if (\OC_Config::getValue('enable_avatars', true) === true): ?> <form id="avatar" method="post" action="<?php p(\OC_Helper::linkToRoute('core_avatar_post')); ?>"> <fieldset class="personalblock"> <legend><strong><?php p($l->t('Profile Image')); ?></strong></legend> @@ -92,6 +93,7 @@ if($_['passwordChangeSupported']) { <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove image')); ?></div> </fieldset> </form> +<?php endif; ?> <form> <fieldset class="personalblock"> diff --git a/settings/templates/users.php b/settings/templates/users.php index 2fe0b83cf33..445e5ce2fd5 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -81,7 +81,9 @@ $_['subadmingroups'] = array_flip($items); <table class="hascontrols" data-groups="<?php p(json_encode($allGroups));?>"> <thead> <tr> + <?php if (\OC_Config::getValue('enable_avatars', true) === true): ?> <th id='headerAvatar'></th> + <?php endif; ?> <th id='headerName'><?php p($l->t('Username'))?></th> <th id="headerDisplayName"><?php p($l->t( 'Display Name' )); ?></th> <th id="headerPassword"><?php p($l->t( 'Password' )); ?></th> @@ -97,7 +99,9 @@ $_['subadmingroups'] = array_flip($items); <?php foreach($_["users"] as $user): ?> <tr data-uid="<?php p($user["name"]) ?>" data-displayName="<?php p($user["displayName"]) ?>"> + <?php if (\OC_Config::getValue('enable_avatars', true) === true): ?> <td class="avatar"><div class="avatardiv"></div></td> + <?php endif; ?> <td class="name"><?php p($user["name"]); ?></td> <td class="displayName"><span><?php p($user["displayName"]); ?></span> <img class="svg action" src="<?php p(image_path('core', 'actions/rename.svg'))?>" |