From e994012dec296a7460140cf6dd9d9ba90b79386f Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Sat, 15 Feb 2020 12:33:25 +0100 Subject: [PATCH] [fix] ES Profile: Clean HTML in edit social template --- .../es/templates/common/edit_socials.html | 17 ++++++++--------- www/plugins/es/templates/user/edit_profile.html | 14 +++----------- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/www/plugins/es/templates/common/edit_socials.html b/www/plugins/es/templates/common/edit_socials.html index e6ffd374..128e17f6 100644 --- a/www/plugins/es/templates/common/edit_socials.html +++ b/www/plugins/es/templates/common/edit_socials.html @@ -1,9 +1,9 @@ -<ion-list class="no-padding"> +<div class="list no-padding {{::motion.ionListClass}}"> <!-- divider --> <div class="item item-divider"> - <span> - {{'PROFILE.SOCIAL_NETWORKS_DIVIDER' | translate}} - </span> + + <span translate>PROFILE.SOCIAL_NETWORKS_DIVIDER</span> + <a class="badge button button-text button-small button-small-padding" ng-class="{'button-text-positive': socialData.reorder}" ng-if="formData.socials && formData.socials.length > 1" @@ -11,11 +11,11 @@ <span translate>PROFILE.BTN_REORDER</span> </a> </div> -</ion-list> +</div> <ion-list show-reorder="socialData.reorder"> - <ion-item class="item-remove-animate item-icon-left item-social-edit" + <ion-item class="item-icon-left item-social-edit done in" type="no-padding item-text-wrap" ng-if="formData.socials && formData.socials.length" ng-repeat="social in formData.socials | filter:filterFn track by social.url" @@ -63,9 +63,8 @@ on-return="addSocialNetwork($event);" ng-model="socialData.url"/> </label> - <button class="button button-small hidden-xs" type="button" ng-click="addSocialNetwork($event)"> - {{'COMMON.BTN_ADD'|translate}} - </button> + <button class="button button-small hidden-xs" type="button" ng-click="addSocialNetwork($event)" + translate>COMMON.BTN_ADD</button> <button class="button button-small button-icon icon ion-android-add visible-xs" type="button" ng-click="addSocialNetwork($event)"> </button> diff --git a/www/plugins/es/templates/user/edit_profile.html b/www/plugins/es/templates/user/edit_profile.html index 98162d8f..1c5e26ee 100644 --- a/www/plugins/es/templates/user/edit_profile.html +++ b/www/plugins/es/templates/user/edit_profile.html @@ -63,11 +63,7 @@ <form name="profileForm" novalidate="" ng-submit="saveAndClose()"> - <div class="list item-text-wrap {{::motion.ionListClass}}" - ng-init="setForm(profileForm)"> - - - + <div class="list item-text-wrap {{::motion.ionListClass}}" ng-init="setForm(profileForm)"> <!-- Public info --> <div class="item item-icon-left item-text-wrap"> @@ -75,9 +71,7 @@ <h4 class="positive" translate>PROFILE.HELP.WARNING_PUBLIC_DATA</h4> </div> - <div class="item item-divider"> - {{'PROFILE.GENERAL_DIVIDER' | translate}} - </div> + <div class="item item-divider" translate>PROFILE.GENERAL_DIVIDER</div> <!-- title --> <ion-item class="item-input item-floating-label item-button-right" @@ -121,9 +115,7 @@ <div class="list item-text-wrap {{::motion.ionListClass}}"> - <div class="item item-divider"> - {{'PROFILE.TECHNICAL_DIVIDER' | translate}} - </div> + <div class="item item-divider" translate>PROFILE.TECHNICAL_DIVIDER</div> <!-- uid --> <ion-item class="item-icon-left" ng-if="walletData && walletData.uid"> -- GitLab