diff --git a/_include/include_diary.php b/_include/include_diary.php
index 7ce1833..cbe374a 100644
--- a/_include/include_diary.php
+++ b/_include/include_diary.php
@@ -81,6 +81,7 @@ order by object_date ASC;
}
$smarty->assign('news_array',$news_array);
+ $smarty->assign('user',$user);
//$smarty->assign('balance', $balance);
$smarty->display('user_diary.tpl');
diff --git a/template/templates/user_data_edit.tpl b/template/templates/user_data_edit.tpl
index 7b53f8d..9e4d899 100644
--- a/template/templates/user_data_edit.tpl
+++ b/template/templates/user_data_edit.tpl
@@ -23,7 +23,7 @@
-
+
+
+
{{$user_data.uk_balance|number_format:0:'':' '}} Ft
+
+
+
+ {if $user_data.uk_balance}
+
+
+ {if $user_data.uk_balance_expire_date}
+ {{$user_data.uk_balance_expire_date|date_format:"%Y.%m.%d"}}
+ {elseif $user_data.uk_last_deposit}
+ {strtotime("+1 month",strtotime($user_data.uk_last_deposit))|date_format:"%Y.%m.%d"}
+ {else}
+ Automatikusan
+ {/if}
+
+ {/if}
+
+
diff --git a/template/templates/user_diary.tpl b/template/templates/user_diary.tpl
index 733abee..c5e4118 100644
--- a/template/templates/user_diary.tpl
+++ b/template/templates/user_diary.tpl
@@ -5,13 +5,24 @@
{foreach $actions as $action}
{if $action@first}
-
+
Aktuális egyenleg: {$action->get_de_balance()|number_format:0:'':' '} Ft
+
+ {if $user->get_uk_balance_expires()}
+
+ {if $user->get_uk_balance_expire_date()}
+ Az egyenleg lejár: {{$user->get_uk_balance_expire_date()|date_format:"%Y.%m.%d"}}
+ {elseif $user->get_uk_last_deposit()}
+ {else}
+ Kérjük, töltse fel egyenlegét!
+ {/if}
+
+ {/if}
{/if}
{if $action->get_de_training()|is_a:'training'}