Multiple user profile page layout improvements

Co-authored-by: Kos Furler <35310076+kosfurler@users.noreply.github.com>
This commit is contained in:
Alma Armas 2020-06-29 20:12:57 +00:00
parent f34e0ea88a
commit 5bc9f7ff58
2 changed files with 58 additions and 51 deletions

View file

@ -250,16 +250,20 @@
<a href="/notes{$user->getId()}">{_"all_title"}</a> <a href="/notes{$user->getId()}">{_"all_title"}</a>
</div> </div>
</div> </div>
<div style="padding: 5px;">
<div class="ovk-album" style="display: inline-block;" n:foreach="$notes as $note"> <div style="padding: 5px 8px 15px 8px;">
<div style="text-align: center;float: left;height: 30pt;width: 35px;"> <ul class="notes_titles" n:foreach="$notes as $note">
<img src="/assets/packages/static/openvk/img/note_icon.png" /> <li class="written">
</div> <a href="/note{$user->getId()}_{$note->getId()}">
<div> {$note->getName()}
<b><a href="/note{$user->getId()}_{$note->getId()}">{$note->getName()}</a></b><br> </a>
<span class="nobold">{$note->getPreview(35)}</span> <small>
</div> {$note->getPublicationTime()}
</div> <span class="divide">|</span>
<a href="/note{$user->getId()}_{$note->getId()}">{_comments}</a>
</small>
</li>
</ul>
</div> </div>
</div> </div>
</div> </div>
@ -306,9 +310,10 @@
<div class="right_big_block"> <div class="right_big_block">
<div class="page_info"> <div class="page_info">
<h4>
{$user->getFullName()}
<div class="accountInfo clearFix">
<div class="profileName">
<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 !is_null($thisUser) && $user->getId() == $thisUser->getId()} {elseif !is_null($thisUser) && $user->getId() == $thisUser->getId()}
@ -316,43 +321,45 @@
<a href="/edit" class="edit_link">[ {_"change_status"} ]</a> <a href="/edit" class="edit_link">[ {_"change_status"} ]</a>
</div> </div>
{/if} {/if}
</h4> </div>
<table class="ugc-table" n:if=" $user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)"> </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> <tbody>
<tr> <tr>
<td><span class="nobold">{_"gender"}: </span></td> <td class="label"><span class="nobold">{_"gender"}: </span></td>
<td>{$user->isFemale() ? tr("female") : tr("male")}</td> <td class="data">{$user->isFemale() ? tr("female") : tr("male")}</td>
</tr> </tr>
<tr> <tr>
<td><span class="nobold">{_"relationship"}:</span></td> <td class="label"><span class="nobold">{_"relationship"}:</span></td>
<td>{var $marialStatus = $user->getMaritalStatus()}{_"relationship_$marialStatus"}</td> <td class="data">{var $marialStatus = $user->getMaritalStatus()}{_"relationship_$marialStatus"}</td>
</tr> </tr>
<tr> <tr>
<td><span class="nobold">{_"registration_date"}: </span></td> <td class="label"><span class="nobold">{_"registration_date"}: </span></td>
<td>{$user->getRegistrationTime()}</td> <td class="data">{$user->getRegistrationTime()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getHometown())"> <tr n:if="!is_null($user->getHometown())">
<td><span class="nobold">{_"hometown"}:</span></td> <td class="label"><span class="nobold">{_"hometown"}:</span></td>
<td>{$user->getHometown()}</td> <td class="data">{$user->getHometown()}</td>
</tr> </tr>
<tr> <tr>
<td><span class="nobold">{_"politViews"}:</span></td> <td class="label"><span class="nobold">{_"politViews"}:</span></td>
<td>{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td> <td class="data">{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
<div n:if=" $user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)"> <div n:if=" $user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)">
<div class="content_title_expanded" onclick="hidePanel(this);"> <div class="content_title_expanded" onclick="hidePanel(this);">
{_"information"} {_"information"}
</div> </div>
{capture $contactInfo_Tmp} {capture $contactInfo_Tmp}
<table class="ugc-table" n:ifcontent> <table class="ugc-table" border="0" cellspacing="0" cellpadding="0" border="0" cellspacing="0" cellpadding="0" n:ifcontent>
<tbody n:ifcontent> <tbody n:ifcontent>
<!--sse--> <!--sse-->
<tr n:if="!is_null($user->getContactEmail())"> <tr n:if="!is_null($user->getContactEmail())">
<td><span class="nobold">{_"email"}: </span></td> <td class="label"><span class="nobold">{_"email"}: </span></td>
<td> <td>
<a href="mailto:{$user->getContactEmail()}" rel="ugc"> <a href="mailto:{$user->getContactEmail()}" rel="ugc">
{$user->getContactEmail()} {$user->getContactEmail()}
@ -360,7 +367,7 @@
</td> </td>
</tr> </tr>
<tr n:if="!is_null($user->getTelegram())"> <tr n:if="!is_null($user->getTelegram())">
<td><span class="nobold">{_"telegram"}: </span></td> <td class="label"><span class="nobold">{_"telegram"}: </span></td>
<td> <td>
<a href="https://t.me/{$user->getTelegram()}" rel="ugc" target="_blank"> <a href="https://t.me/{$user->getTelegram()}" rel="ugc" target="_blank">
@{$user->getTelegram()} @{$user->getTelegram()}
@ -369,52 +376,52 @@
</tr> </tr>
<!--/sse--> <!--/sse-->
<tr n:if="!is_null($user->getCity())"> <tr n:if="!is_null($user->getCity())">
<td><span class="nobold">{_"city"}:</span></td> <td class="label"><span class="nobold">{_"city"}:</span></td>
<td>{$user->getCity()}</td> <td class="data">{$user->getCity()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getPhysicalAddress())"> <tr n:if="!is_null($user->getPhysicalAddress())">
<td><span class="nobold">{_"address"}:</span></td> <td class="label"><span class="nobold">{_"address"}:</span></td>
<td>{$user->getPhysicalAddress()}</td> <td class="data">{$user->getPhysicalAddress()}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
{/capture} {/capture}
{capture $uInfo_Tmp} {capture $uInfo_Tmp}
<table class="ugc-table" n:ifcontent> <table class="ugc-table" border="0" cellspacing="0" cellpadding="0" border="0" cellspacing="0" cellpadding="0" n:ifcontent>
<tbody n:ifcontent> <tbody n:ifcontent>
<tr n:if="!is_null($user->getInterests())"> <tr n:if="!is_null($user->getInterests())">
<td><span class="nobold">{_"interests"}: </span></td> <td class="label"><span class="nobold">{_"interests"}: </span></td>
<td>{$user->getInterests()}</td> <td class="data">{$user->getInterests()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getFavoriteMusic())"> <tr n:if="!is_null($user->getFavoriteMusic())">
<td><span class="nobold">{_"favorite_music"}: </span></td> <td class="label"><span class="nobold">{_"favorite_music"}: </span></td>
<td>{$user->getFavoriteMusic()}</td> <td class="data">{$user->getFavoriteMusic()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getFavoriteFilms())"> <tr n:if="!is_null($user->getFavoriteFilms())">
<td><span class="nobold">{_"favorite_films"}: </span></td> <td class="label"><span class="nobold">{_"favorite_films"}: </span></td>
<td>{$user->getFavoriteFilms()}</td> <td class="data">{$user->getFavoriteFilms()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getFavoriteShows())"> <tr n:if="!is_null($user->getFavoriteShows())">
<td><span class="nobold">{_"favorite_shows"}: </span></td> <td class="label"><span class="nobold">{_"favorite_shows"}: </span></td>
<td>{$user->getFavoriteShows()}</td> <td class="data">{$user->getFavoriteShows()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getFavoriteBooks())"> <tr n:if="!is_null($user->getFavoriteBooks())">
<td><span class="nobold">{_"favorite_books"}: </span></td> <td class="label"><span class="nobold">{_"favorite_books"}: </span></td>
<td>{$user->getFavoriteBooks()}</td> <td class="data">{$user->getFavoriteBooks()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getFavoriteQuote())"> <tr n:if="!is_null($user->getFavoriteQuote())">
<td><span class="nobold">{_"favorite_quotes"}: </span></td> <td class="label"><span class="nobold">{_"favorite_quotes"}: </span></td>
<td>{$user->getFavoriteQuote()}</td> <td class="data">{$user->getFavoriteQuote()}</td>
</tr> </tr>
<tr n:if="!is_null($user->getDescription())"> <tr n:if="!is_null($user->getDescription())">
<td><span class="nobold">О себе: </span></td> <td class="label"><span class="nobold">О себе: </span></td>
<td>{$user->getDescription()}</td> <td class="data">{$user->getDescription()}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
{/capture} {/capture}
<div>
<div style="padding: 20px 10px" n:ifcontent> <div style="padding: 10px 8px 15px 8px;" n:ifcontent>
{if !empty($contactInfo_Tmp)} {if !empty($contactInfo_Tmp)}
<h4 style="border-bottom: none; font-size: 11px; padding: 0; display: inline-block;">{_"contact_information"} {ifset $thisUser}{if $thisUser->getId() == $user->getId()}<a href="/edit?act=contacts" class="edit_link">[ {_"edit"} ]</a>{/if}{/ifset}</h4> <h4 style="border-bottom: none; font-size: 11px; padding: 0; display: inline-block;">{_"contact_information"} {ifset $thisUser}{if $thisUser->getId() == $user->getId()}<a href="/edit?act=contacts" class="edit_link">[ {_"edit"} ]</a>{/if}{/ifset}</h4>
{if !empty($contactInfo_Tmp)} {if !empty($contactInfo_Tmp)}
@ -431,7 +438,7 @@
<div style="padding-top: 15px;color:gray;text-align: center;">Информация отсутствует.</div> <div style="padding-top: 15px;color:gray;text-align: center;">Информация отсутствует.</div>
{/if} {/if}
</div> </div>
</div>
<p n:if="empty($contactInfo_Tmp) && empty($uInfo_Tmp)"> <p n:if="empty($contactInfo_Tmp) && empty($uInfo_Tmp)">
Пользователь предпочёл оставить о себе только воздух тайны. Пользователь предпочёл оставить о себе только воздух тайны.
</p> </p>

BIN
Web/static/img/note.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B