Merge pull request #13395 from owncloud/show-readonly-mail

Show mail address & display name if it is read only
This commit is contained in:
Lukas Reschke 2015-01-15 22:08:23 +01:00
commit 2426729ad4
1 changed files with 14 additions and 0 deletions

View File

@ -102,6 +102,13 @@ if($_['displayNameChangeSupported']) {
<input type="hidden" id="oldDisplayName" name="oldDisplayName" value="<?php p($_['displayName'])?>" />
</form>
<?php
} else {
?>
<div class="section">
<h2><?php echo $l->t('Full Name');?></h2>
<span><?php p($_['displayName'])?></span>
</div>
<?php
}
?>
@ -119,6 +126,13 @@ if($_['passwordChangeSupported']) {
<em><?php p($l->t('Fill in an email address to enable password recovery and receive notifications'));?></em>
</form>
<?php
} else {
?>
<div class="section">
<h2><?php echo $l->t('Email'); ?></h2>
<span><?php if($_['email']) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
</div>
<?php
}
?>