Commit 7acab6fb authored by Stacey Walker's avatar Stacey Walker Committed by Richard Mansfield
Browse files

fixed template escaping in blocktype display


Signed-off-by: default avatarStacey Walker <stacey@catalyst.net.nz>
parent 32c921e5
{auto_escape on}
<div class="blockinstance-content">
{if $tasks.data}
<table id="taskstable_{$blockid}">
......@@ -24,4 +25,4 @@ addLoadEvent(function() {literal}{{/literal}
<p>{str tag='notasks' section='artefact.plans'}</p>
{/if}
</div>
{auto_escape off}
\ No newline at end of file
{auto_escape on}
{foreach from=$tasks.data item=task}
{if $task->completed == -1}
<tr class="plan_incomplete">
<td class="c1">{$task->completiondate|escape}</td>
<td class="c2">{$task->title|escape}</td>
<td class="c1">{$task->completiondate|safe}</td>
<td class="c2">{$task->title|safe}</td>
<td class="c3">&nbsp;</td>
</tr>
{else}
<tr class="{cycle values='r0,r1'}">
<td class="c1">{$task->completiondate|escape}</td>
<td class="c2">{$task->title|escape}<div>{$task->description|escape}</div></td>
<td class="c1">{$task->completiondate|safe}</td>
<td class="c2">{$task->title|safe}</td>
{if $task->completed == 1}
<td class="c3"><div class="plan_completed"><img src="{$WWWROOT}theme/raw/static/images/success.gif" alt="" /></div></td>
{else}
......@@ -16,3 +17,4 @@
{/if}
</tr>
{/if}
{auto_escape off}
......@@ -61,6 +61,7 @@ $string['edittask'] = 'Edit task';
$string['editingtask'] = 'Editing task';
$string['mytasks'] = 'My Tasks';
$string['newtask'] = 'New task';
$string['notasks'] = 'No tasks to display.';
$string['notasksaddone'] = 'No tasks yet. %sAdd one%s!';
$string['savetask'] = 'Save task';
$string['task'] = 'task';
......
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