frontend: change exercice border coloration when solved or bonus are active

This commit is contained in:
nemunaire 2018-12-10 00:28:34 +01:00
commit 03e3bb8118
3 changed files with 10 additions and 8 deletions

View file

@ -15,12 +15,11 @@
</div>
<div class="card-columns">
<div class="card niceborder excard" ng-repeat="(k,theme) in themes" ng-click="goTheme()">
<div class="card niceborder excard" ng-repeat="(k,theme) in themes" ng-click="goTheme()" ng-class="{'border-success': theme.solved > 0, 'border-warning': theme.exercice_coeff_max > 1}">
<div class="card-img-top theme-card" ng-show="theme.image" style="background-image: url({{ theme.image }})"></div>
<div class="card-body text-indent">
<h5 class="card-title clearfix">
<h5 class="card-title">
<a ng-href="/{{ theme.urlid }}">{{ theme.name }}</a>
<a ng-href="/tags/{{tag}}" class="badge badge-pill badge-secondary ml-1 float-right">#tag</a>
</h5>
<p class="card-text text-justify" ng-bind-html="theme.headline"></p>
</div>