Post, Comment: Add a link to profile when clicking on PFP

This commit is contained in:
veselcraft 2022-02-05 20:24:46 +03:00
parent 77cc83ca13
commit 9d4478516f
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
3 changed files with 23 additions and 16 deletions

View file

@ -7,10 +7,12 @@
<tbody> <tbody>
<tr> <tr>
<td width="30" valign="top"> <td width="30" valign="top">
<img <a href="{$author->getURL()}">
src="{$author->getAvatarURL()}" <img
width="30" src="{$author->getAvatarURL()}"
class="cCompactAvatars" /> width="30"
class="cCompactAvatars" />
</a>
</td> </td>
<td width="100%" valign="top"> <td width="100%" valign="top">
<div class="post-author"> <div class="post-author">

View file

@ -8,15 +8,17 @@
<tbody> <tbody>
<tr> <tr>
<td width="54" valign="top"> <td width="54" valign="top">
<img <a href="{$author->getURL()}">
src="{$author->getAvatarURL()}" <img
width="{ifset $compact}25{else}50{/ifset}" src="{$author->getAvatarURL()}"
{ifset $compact}class="cCompactAvatars"{/ifset} /> width="{ifset $compact}25{else}50{/ifset}"
{if !$post->isPostedOnBehalfOfGroup() && !$compact} {ifset $compact}class="cCompactAvatars"{/ifset} />
<span n:if="$author->isOnline()" class="post-online"> {if !$post->isPostedOnBehalfOfGroup() && !$compact}
{_online} <span n:if="$author->isOnline()" class="post-online">
</span> {_online}
{/if} </span>
{/if}
</a>
</td> </td>
<td width="100%" valign="top"> <td width="100%" valign="top">
<div class="post-author"> <div class="post-author">

View file

@ -4,14 +4,17 @@
<tbody> <tbody>
<tr> <tr>
<td width="54" valign="top"> <td width="54" valign="top">
<img <a href="{$author->getURL()}">
src="{$author->getAvatarURL()}" <img
width="50" /> src="{$author->getAvatarURL()}"
width="50" />
</a>
{if !$post->isPostedOnBehalfOfGroup() && !($compact ?? false)} {if !$post->isPostedOnBehalfOfGroup() && !($compact ?? false)}
<span n:if="$author->isOnline()" class="post-online"> <span n:if="$author->isOnline()" class="post-online">
{_online} {_online}
</span> </span>
{/if} {/if}
</td> </td>
<td width="100%" valign="top"> <td width="100%" valign="top">
<div class="post-author"> <div class="post-author">