diary
This commit is contained in:
34
template/templates/user_diary.tpl
Normal file
34
template/templates/user_diary.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
<div class="list">
|
||||
{foreach $training_array as $training}
|
||||
<div class="bigger_space">
|
||||
{if
|
||||
$training@first ||
|
||||
(
|
||||
$training_array[$training@index]->get_tr_date()|substr:5:2 != $training_array[$training@index-1]->get_tr_date()|substr:5:2
|
||||
)
|
||||
|
||||
}
|
||||
<span class="date_separator">{$training_array[$training@index]->get_tr_date()|substr:0:4}.
|
||||
{$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}
|
||||
</span>
|
||||
{/if}
|
||||
<div class="list_item line_height14">
|
||||
<span class="size20 bold">
|
||||
{$training->get_tr_date()|substr:0:4}.
|
||||
{$months[$training_array[$training@index]->get_tr_date()|substr:5:2]}
|
||||
{$training->get_tr_date_day()}.
|
||||
{$days[$training->get_tr_date_day_of_week()]}
|
||||
{$training->get_tr_date_time()}
|
||||
</span>
|
||||
<br>
|
||||
{$training->get_tr_type_name_by_id()} edzés
|
||||
{$training->get_tr_duration()} p
|
||||
{if $training->is_coach()}
|
||||
{foreach $training->get_tr_coaches_name() as $coach_name}
|
||||
{if $coach_name@first}({/if}{$coach_name}{if $coach_name@last}){else}, {/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
Reference in New Issue
Block a user