data.phase_id ne $overviewCategory->tempData.phase->data.phase_id}style="display:none;"{/if}>
{assign var=stagePlace value='before'}
{if strtotime($cPhase->data.phase_startdate) gte strtotime($overviewCategory->tempData.phase->getEndDate())}
{assign var=stagePlace value='after'}
{elseif $cPhase->data.phase_id eq $overviewCategory->tempData.phase->data.phase_id}
{assign var=stagePlace value='current'}
{/if}
{if $stagePlace eq 'before'}
{"Phase has now ended"|gettext}
{elseif $stagePlace eq 'current' && $cPhase->data.phase_enddate ne '0101-01-01 00:00:00'}
{"This phase ends in"|gettext}...
0
0
0
0
{elseif $stagePlace eq 'after'}
{"Phase starts in"|gettext} {$cPhase->startsIn()}
{/if}
{if $stagePlace eq 'after'}
{"Upcoming phase"|gettext}
{elseif $stagePlace eq 'current'}
{"Current phase"|gettext}
{elseif $stagePlace eq 'before'}
{"Past phase"|gettext}
{/if}
{assign var='accessData' value=$cPhase->joined.access->getData()}
{if $cPhase->data.phase_name ne ''}{Translation::t($cPhase, 'phase_name')}{else}{"Unnamed phase"|gettext}{/if}
{if $accessData.hasAccess eq 0}{"You do not have access to this phase"|gettext}{/if}{Translation::t($cPhase, 'phase_description')|truncate:200}
{if $accessData.hasAccess eq 0}{"You do not have access to this phase"|gettext}{/if}{Translation::t($cPhase, 'phase_description')}