Display challenge date in header instead of clock if team 0

This commit is contained in:
nemunaire 2016-02-01 17:13:58 +01:00 committed by Pierre-Olivier Mercier
commit 09e726564f
5 changed files with 11 additions and 3 deletions

View file

@ -42,13 +42,16 @@
<img src="/img/epita.png" alt="Epita" class="center-block">
</a>
</div>
<div id="clock" class="col-sm-7" ng-class="{expired: time.expired, end: time.end}">
<div id="clock" class="col-sm-7" ng-class="{expired: time.expired, end: time.end}" ng-show="time.start || my.team_id">
<span id="hours">{{ time.hours | time }}</span>
<span class="point">:</span>
<span id="min">{{ time.minutes | time }}</span>
<span class="point">:</span>
<span id="sec">{{ time.seconds | time }}</span>
</div>
<div id="clock" class="col-sm-7" ng-show="!(!time.start || my.team_id)">
{{ time.start | date:"shortDate" }}
</div>
</div>
</div>
</div>