milestone fix; maybe not perfect

This commit is contained in:
Tóth Richárd
2019-02-14 16:53:40 +01:00
parent ddd2727ef2
commit 9abbc57532
16 changed files with 1492 additions and 989 deletions

View File

@@ -3,20 +3,28 @@
{if
$ms@first ||
(
$ms_array[$ms@index]->get_ms_month()|substr:5:2 != $ms_array[$ms@index-1]->get_ms_month()|substr:5:2
$ms_array[$ms@index]->get_ms_season() != $ms_array[$ms@index-1]->get_ms_season()
)
}
{if !$ms@first &&
$ms_array[$ms@index]->get_ms_month()|substr:5:2 != $ms_array[$ms@index-1]->get_ms_month()|substr:5:2
$ms_array[$ms@index]->get_ms_season() != $ms_array[$ms@index-1]->get_ms_season()
}
</div>
{/if}
<span onclick="block_action('block_{$ms->get_ms_month()|substr:0:4}{$ms->get_ms_month()|substr:5:2}');" class="date_separator clickable">{$ms_array[$ms@index]->get_ms_month()|substr:0:4}.
{$months[$ms_array[$ms@index]->get_ms_month()|substr:5:2]}
<span onclick="block_action('block_{$ms_array[$ms@index]->get_ms_season()}');" class="date_separator clickable">
<div class="full full_block_{$ms_array[$ms@index]->get_ms_season()}">
{nl2br($ms_array[$ms@index]->get_ms_sums())}
</div>
<div class="short short_block_{$ms_array[$ms@index]->get_ms_season()}">
{assign var=someVar value="\n"|explode:$ms_array[$ms@index]->get_ms_sums()}
{$someVar[0]}
</div>
<img src="/_image/open_folder.png">
</span>
<div id="block_{$ms->get_ms_month()|substr:0:4}{$ms->get_ms_month()|substr:5:2}" class="month_block">
<div id="block_{$ms_array[$ms@index]->get_ms_season()}" class="month_block">
{/if}
{if $ms->get_ms_training_mst_id() != null}
@@ -53,6 +61,15 @@
{$ms->get_ms_camp_msca_id()->get_msca_place()}<br>
</div>
</a>
{elseif $ms->get_ms_ranking_msr_id() != null}
<a>
<div class="list_item ranking">
<img src="/_image/ranking.png">
<strong><span class="bold" style="display: block;">Ranglista</span></strong><br>
{$ms->get_ms_ranking_msr_id()->get_msr_date()}<br>
{nl2br($ms->get_ms_ranking_msr_id()->get_msr_rankings())}
</div>
</a>
{/if}
@@ -67,10 +84,16 @@
function open_block(block_id) {
$("#"+block_id).slideDown("slow");
$(".full_"+block_id).hide();
$(".short_"+block_id).show();
$(".short_"+block_id).css('display', 'inline-block');
}
function close_block(block_id) {
$("#"+block_id).slideUp("slow");
$(".full_"+block_id).show();
$(".short_"+block_id).hide();
$(".full_"+block_id).css('display', 'inline-block');
}
function block_action(block_id) {