]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show mail address & display name if it is read only
authorMorris Jobke <hey@morrisjobke.de>
Thu, 15 Jan 2015 16:51:54 +0000 (17:51 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 15 Jan 2015 16:51:54 +0000 (17:51 +0100)
* gives the user the chance to verify it's mail address
  and display name
* ref #12823
* fixes #13393

settings/templates/personal.php

index ad61f398b1c83a2f2f12e72ecc1527240d13c6c5..978174cc683344e02fb063c0cf9a1801572dfb7c 100644 (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
 }
 ?>