proper coloring for start/end times

This commit is contained in:
Sebastian Grewe 2013-07-22 16:47:50 +02:00
parent 4b6582ac35
commit 2c3eac1f67

View File

@ -36,10 +36,10 @@
{$event.STATUS.value|default:"0"|number_format:"2"} seconds
</font>
{else if $event.STATUS.type == 'date'}
{if $event.STATUS.value < $smarty.now - 120}
<font color="orange">
{else if $event.STATUS.value < $smarty.now - 180}
{if ($smarty.now - 180) > $event.STATUS.value}
<font color="red">
{else if ($smarty.now - 120) > $event.STATUS.value}
<font color="orange">
{else}
<font color="green">
{/if}