Display challenge date in header instead of clock if team 0
This commit is contained in:
parent
6133498165
commit
09e726564f
5 changed files with 11 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Reference in a new issue