Skip to content

Commit

Permalink
links added
Browse files Browse the repository at this point in the history
  • Loading branch information
vomikan committed Jan 14, 2015
1 parent dab4847 commit 32c08f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
2 changes: 0 additions & 2 deletions OneCategoryList/luacontent.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
local total = 0;
function handle_record(record)
record:set("TRX_LINK", string.format('<a href="trx:%s">%s</a>', record:get('Nr'), record:get('Nr')));
record:set("TRX_GOTO", string.format('<a href="trxid:%s">%s</a>', record:get('Nr'), record:get('ACCOUNTNAME')));
local color = record:get('COLOR');
if (string.len(color) > 0) then
record:set("COLOR", string.format('bgcolor=rgb(%s)', color));
Expand Down
36 changes: 18 additions & 18 deletions OneCategoryList/template.htt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ img{
</thead>
<tbody>
<TMPL_LOOP NAME=CONTENTS>
<tr>
<tr>
<td <TMPL_VAR COLOR> ></td>
<td class = "text-right"><TMPL_VAR TRX_LINK></td>
<td nowrap><TMPL_VAR TRX_GOTO></td>
<td class="text-right"><a href="trx:<TMPL_VAR Nr>"><TMPL_VAR Nr></a></td>
<td nowrap><a href="trxid:<TMPL_VAR Nr>"><TMPL_VAR ACCOUNTNAME></a></td>
<td nowrap><TMPL_VAR PAYEENAME></td>
<td class="date" sorttable_customkey='<TMPL_VAR Date>' nowrap><TMPL_VAR Date></td>
<td class="money" sorttable_customkey='<TMPL_VAR Amount>' prefix="<TMPL_VAR PFX_SYMBOL>" suffix="<TMPL_VAR SFX_SYMBOL>" ><TMPL_VAR Amount></td>
Expand All @@ -47,18 +47,18 @@ img{
</tr>
</TMPL_LOOP>
</tbody>
<tfoot>
<tr class="total">
<td></td>
<td class="i18n">Total</td>
<td></td>
<td></td>
<td></td>
<td class="money" prefix="<TMPL_VAR PFX_SYMBOL>" suffix="<TMPL_VAR SFX_SYMBOL>" nowrap><TMPL_VAR GRAND_TOTAL></td>
<td></td>
<td></td>
</tr>
</tfoot>
<tfoot>
<tr class="total">
<td></td>
<td></td>
<td class="i18n">Total:</td>
<td></td>
<td></td>
<td class="money" prefix="<TMPL_VAR PFX_SYMBOL>" suffix="<TMPL_VAR SFX_SYMBOL>" nowrap><TMPL_VAR GRAND_TOTAL></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
</div>
<TMPL_LOOP ERRORS>
Expand Down Expand Up @@ -126,19 +126,19 @@ img{
var translations =
{
"english":[{
"Title":"My Report"
"Title":"Category list"
}],
"russian": [{
"Title":"Список по категории", "Nr":"№", "Amount":"Сумма"
, "Date": "Дата", "Account": "Счёт"
, "Payee":"Получатель", "Notes":"Примечания"
, "Files":"Файлы", "Total":"Всего:"
, "Files":"Файлы", "Total:":"Всего:"
}],
"italian":[{
"Title":"Il mio rapporto", "Nr":"#", "Amount":"Importo"
, "Date": "Data", "Account": "Conto"
, "Payee":"Beneficiario", "Notes":"Note"
, "Files":"File", "Total":"Totale:"
, "Files":"File", "Total:":"Totale:"
}]
};

Expand Down

0 comments on commit 32c08f9

Please sign in to comment.