Fix indentation in User/View.xml

This commit is contained in:
Maxim Leshchenko 2021-11-24 18:14:13 +02:00
parent ab231aa55f
commit 4dcc5981f1
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -354,49 +354,50 @@
<div class="page_info"> <div class="page_info">
<div n:if="!is_null($alert = $user->getAlert())" class="user-alert">{$alert}</div> <div n:if="!is_null($alert = $user->getAlert())" class="user-alert">{$alert}</div>
<div class="accountInfo clearFix"> <div class="accountInfo clearFix">
<div class="profileName"> <div class="profileName">
<h2>{$user->getFullName()}</h2> <h2>{$user->getFullName()}</h2>
{if !is_null($user->getStatus())} {if !is_null($user->getStatus())}
<div class="page_status">{$user->getStatus()}</div> <div class="page_status">{$user->getStatus()}</div>
{elseif isset($thisUser) && $user->getId() == $thisUser->getId()} {elseif isset($thisUser) && $user->getId() == $thisUser->getId()}
<div class="page_status"> <div class="page_status">
<a href="/edit" class="edit_link">[ {_"change_status"} ]</a> <a href="/edit" class="edit_link">[ {_"change_status"} ]</a>
</div> </div>
{/if}
</div>
</div><div>
<table id="basicInfo" class="ugc-table" border="0" cellspacing="0" cellpadding="0" border="0" cellspacing="0" cellpadding="0" n:if="$user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)">
<tbody>
<tr>
<td class="label"><span class="nobold">{_"gender"}: </span></td>
<td class="data">{$user->isFemale() ? tr("female") : tr("male")}</td>
</tr>
<tr>
<td class="label"><span class="nobold">{_"relationship"}:</span></td>
<td class="data">{var $marialStatus = $user->getMaritalStatus()}{_"relationship_$marialStatus"}</td>
</tr>
<tr>
<td class="label"><span class="nobold">{_"registration_date"}: </span></td>
<td class="data">{$user->getRegistrationTime()}</td>
</tr>
<tr n:if="!is_null($user->getHometown())">
<td class="label"><span class="nobold">{_"hometown"}:</span></td>
<td class="data">{$user->getHometown()}</td>
</tr>
<tr>
<td class="label"><span class="nobold">{_"politViews"}:</span></td>
<td class="data">{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
</tr>
{if $user->getBirthday() > 0}
<tr>
<td class="label"><span class="nobold">{_"birth_date"}:</span></td>
<td class="data">{date('d F Y',$user->getBirthday())},
{date('m d') >= date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) :
(date('m d') < date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) - 1)} {_"years"}</td>
</tr>
{/if} {/if}
</tbody> </div>
</table> </div>
<div>
<table id="basicInfo" class="ugc-table" border="0" cellspacing="0" cellpadding="0" border="0" cellspacing="0" cellpadding="0" n:if=" $user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)">
<tbody>
<tr>
<td class="label"><span class="nobold">{_"gender"}: </span></td>
<td class="data">{$user->isFemale() ? tr("female") : tr("male")}</td>
</tr>
<tr>
<td class="label"><span class="nobold">{_"relationship"}:</span></td>
<td class="data">{var $marialStatus = $user->getMaritalStatus()}{_"relationship_$marialStatus"}</td>
</tr>
<tr>
<td class="label"><span class="nobold">{_"registration_date"}: </span></td>
<td class="data">{$user->getRegistrationTime()}</td>
</tr>
<tr n:if="!is_null($user->getHometown())">
<td class="label"><span class="nobold">{_"hometown"}:</span></td>
<td class="data">{$user->getHometown()}</td>
</tr>
<tr>
<td class="label"><span class="nobold">{_"politViews"}:</span></td>
<td class="data">{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
</tr>
{if $user->getBirthday() > 0}
<tr>
<td class="label"><span class="nobold">{_"birth_date"}:</span></td>
<td class="data">{date('d F Y',$user->getBirthday())},
{date('m d') >= date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) :
(date('m d') < date('m d', $user->getBirthday()) ? date('Y') - date('Y', $user->getBirthday()) - 1)} {_"years"}</td>
</tr>
{/if}
</tbody>
</table>
</div> </div>
</div> </div>
<div n:if="$user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)"> <div n:if="$user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)">