summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-26 17:55:41 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-04-28 23:41:37 -0300
commit47985a13fd7eb7fb033cc1134a10d5784541f0f2 (patch)
tree25eaa4a8a55dfa1bf28ca5af06c1a30a20ffdd4f
parenta0ca1c04c3ce003a2ce0090965261519dddc17b9 (diff)
downloadnextcloud-server-47985a13fd7eb7fb033cc1134a10d5784541f0f2.tar.gz
nextcloud-server-47985a13fd7eb7fb033cc1134a10d5784541f0f2.zip
only show verification buttons for public fields and field with some actual value
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
-rw-r--r--settings/templates/personal.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index c5e8845b418..3ec93474e9b 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -99,7 +99,7 @@
<label for="email"><?php p($l->t('Email')); ?></label>
<span class="icon-password"/>
</h2>
- <div class="verify">
+ <div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>">
<img id="verify-email" <?php
switch($_['emailVerification']) {
case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
@@ -165,7 +165,7 @@
<label for="website"><?php p($l->t('Website')); ?></label>
<span class="icon-password"/>
</h2>
- <div class="verify">
+ <div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>">
<img id="verify-website" <?php
switch($_['websiteVerification']) {
case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
@@ -199,7 +199,7 @@
<label for="twitter"><?php p($l->t('Twitter')); ?></label>
<span class="icon-password"/>
</h2>
- <div class="verify">
+ <div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>">
<img id="verify-twitter" <?php
switch($_['twitterVerification']) {
case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS: