Commit f3a475f2 authored by Nigel McNie's avatar Nigel McNie
Browse files

Move the post edits text inside the post box itself so it's easy to tell what...

Move the post edits text inside the post box itself so it's easy to tell what post is being talked about.
parent 38fc37f9
......@@ -13,24 +13,6 @@
{if $post->canedit}<a href="{$WWWROOT}interaction/forum/editpost.php?id={$post->id|escape}" id="btn-edit"> {str tag="edit"}</a>{/if}
{if $moderator && $post->parent} | <a href="{$WWWROOT}interaction/forum/deletepost.php?id={$post->id|escape}" id="btn-delete"> {str tag="delete"}</a>{/if}
</div>
{if $post->edit}
<h5>{str tag="editstothispost" section="interaction.forum}</h5>
<ul>
{foreach from=$post->edit item=edit}
<li>
<a href="{$WWWROOT}user/view.php?id={$edit.editor}"
{if $edit.editor == $groupowner} class="groupowner"
{elseif $edit.moderator} class="moderator"
{/if}
>
<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$edit.editor}" alt="">
{$edit.editor|display_name|escape}
</a>
{$edit.edittime|escape}
</li>
{/foreach}
</ul>
{/if}
{/if}
{if $children}
<ul class="postreply">
......
......@@ -18,6 +18,27 @@
{$post->poster|display_name|escape}</a></h5>
<div><img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=100&amp;id={$post->poster}" alt=""></div>
<h5>{$post->postcount}</h5></td>
<td>{$post->body|clean_text}</td>
<td>{$post->body|clean_text}
{if $post->edit}
<div class="postedits">
<h5>{str tag="editstothispost" section="interaction.forum}</h5>
<ul>
{foreach from=$post->edit item=edit}
<li>
<a href="{$WWWROOT}user/view.php?id={$edit.editor}"
{if $edit.editor == $groupowner} class="groupowner"
{elseif $edit.moderator} class="moderator"
{/if}
>
<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$edit.editor}" alt="">
{$edit.editor|display_name|escape}
</a>
{$edit.edittime|escape}
</li>
{/foreach}
</ul>
</div>
{/if}
</td>
</tr>
</table>
......@@ -2165,6 +2165,10 @@ span.breadcrumbs a {
text-align: right;
padding-right: 10px;
}
.postedits {
padding-top: 1.5em;
padding-left: .5em;
}
.deletedpost {
color: gray;
margin-top: 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment