Commit 91313817 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't double escape in inbox templates


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent d5cc8db4
{foreach from=$data item=item}
<tr class="{cycle values='r0,r1'}">
<td>
<img src="{theme_url filename=cat('images/' $item->type '.gif')}" alt="{$item->strtype|escape}" />
<img src="{theme_url filename=cat('images/' $item->type '.gif')}" alt="{$item->strtype}" />
</td>
<td>
{if $item->message}
<a href="" onclick="showHideMessage({$item->id}); return false;">{$item->subject|escape}</a>
<div id="message-{$item->id}" class="hidden">{$item->message|safe|clean_html}
{if $item->url}<br><a href="{$item->url|escape}" class="s">{if $item->urltext}{$item->urltext|escape} &raquo;{else}{str tag="more..."}{/if}</a>{/if}
<a href="" onclick="showHideMessage({$item->id}); return false;">{$item->subject}</a>
<div id="message-{$item->id}" class="hidden">{$item->message|safe}
{if $item->url}<br><a href="{$item->url}" class="s">{if $item->urltext}{$item->urltext} &raquo;{else}{str tag="more..."}{/if}</a>{/if}
</div>
{elseif $item->url}
<a href="{$item->url|escape}">{$item->subject|escape}</a>
<a href="{$item->url}">{$item->subject}</a>
{else}
{$item->subject|escape}
{$item->subject}
{/if}
</td>
<td>{$item->date|escape}</td>
<td>{$item->date}</td>
<td class="center">
{if $item->read}
<img src="{theme_url filename='images/star.png'}" alt="{str tag=read section=activity}">
{else}
<input type="checkbox" class="tocheckread" name="unread-{$item->id|escape}">
<input type="checkbox" class="tocheckread" name="unread-{$item->id}">
{/if}
</td>
<td class="center"><input type="checkbox" class="tocheckdel" name="delete-{$item->id|escape}"></td>
<td class="center"><input type="checkbox" class="tocheckdel" name="delete-{$item->id}"></td>
</tr>
{/foreach}
Markdown is supported
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