projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplified templates by using the default Smarty escape calls.
[timetracker.git]
/
WEB-INF
/
templates
/
mobile
/
expenses.tpl
diff --git
a/WEB-INF/templates/mobile/expenses.tpl
b/WEB-INF/templates/mobile/expenses.tpl
index
bf99d80
..
276f826
100644
(file)
--- a/
WEB-INF/templates/mobile/expenses.tpl
+++ b/
WEB-INF/templates/mobile/expenses.tpl
@@
-106,7
+106,7
@@
function get_date() {
</tr>
<tr>
<td align="right">{$i18n.label.cost} (*):</td>
</tr>
<tr>
<td align="right">{$i18n.label.cost} (*):</td>
- <td>{$forms.expensesForm.cost.control} {$user->currency|escape
:'html'
}</td>
+ <td>{$forms.expensesForm.cost.control} {$user->currency|escape}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
@@
-140,30
+140,27
@@
function get_date() {
{/if}
<td class="tableHeader">{$i18n.label.item}</td>
<td width="5%" class="tableHeaderCentered">{$i18n.label.cost}</td>
{/if}
<td class="tableHeader">{$i18n.label.item}</td>
<td width="5%" class="tableHeaderCentered">{$i18n.label.cost}</td>
- <td width="5%" class="tableHeader">{$i18n.label.edit}</td>
</tr>
{foreach $expense_items as $item}
<tr bgcolor="{cycle values="#f5f5f5,#ccccce"}">
{if $user->isPluginEnabled('cl')}
</tr>
{foreach $expense_items as $item}
<tr bgcolor="{cycle values="#f5f5f5,#ccccce"}">
{if $user->isPluginEnabled('cl')}
- <td valign='top'>{$item.client|escape
:'html'
}</td>
+ <td valign='top'>{$item.client|escape}</td>
{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
- <td valign='top'>{$item.project|escape
:'html'
}</td>
+ <td valign='top'>{$item.project|escape}</td>
{/if}
{/if}
- <td valign='top'>{
$item.item|escape:'html'
}</td>
+ <td valign='top'>{
if $item.invoice_id} {$item.item|escape} {else}<a href='expense_edit.php?id={$item.id}'>{$item.item|escape}</a>{/if
}</td>
<td valign='top' align='right'>{$item.cost}</td>
<td valign='top' align='right'>{$item.cost}</td>
- <td valign='top' align='center'>{if $item.invoice_id} {else}<a href='expense_edit.php?id={$item.id}'>{$i18n.label.edit}</a>{/if}</td>
</tr>
{/foreach}
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>
</tr>
{/foreach}
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>
- <td nowrap align="right">{$i18n.label.day_total}: {$user->currency|escape
:'html'
} {$day_total}</td>
+ <td nowrap align="right">{$i18n.label.day_total}: {$user->currency|escape} {$day_total}</td>
</tr>
</table>
{/if}
</td>
</tr>
</table>
</tr>
</table>
{/if}
</td>
</tr>
</table>
-
{$forms.expensesForm.close}
{$forms.expensesForm.close}