Commit ecea5f8e authored by Curtis Adam's avatar Curtis Adam

Leitner statistics: Adjust the styling of the trophy

parent 48f3c8a8
......@@ -42,6 +42,7 @@ $themes: (
$background: map-get($map, "background");
$hyperlink: map-get($map, "hyperlink");
$modal_icon: map-get($map, "modal_icon");
$trophy: map_get($map, "trophy");
//global button and label colors
$demo_background: map-get($map, "demo_background");
$demo_text: map-get($map, "demo_text");
......@@ -3764,5 +3765,9 @@ $themes: (
color: $transcript_bonus_statistics_info_details_text !important;
}
}
.cardPercentage i {
color: $trophy;
}
}
}
......@@ -77,6 +77,7 @@
"background": $background,
"hyperlink": $hyperlink,
"modal_icon": $thm_gray,
"trophy": $thm_orange,
//global button and label colors
"demo_background": $thm_green,
"demo_text": $white,
......
......@@ -68,14 +68,12 @@
<td>
{{#if earnedTrophy}}
<span class="green-learning-text">
{{this.box6}}{{{getPercentage this.box6}}}
</span>
<i class="fas fa-trophy pull-right"></i>
{{this.box6}}{{{getPercentage this.box6}}}
</span>
{{else}}
<span class="red-learning-text">
{{this.box6}}{{{getPercentage this.box6}}}
</span>
{{this.box6}}{{{getPercentage this.box6}}}
</span>
{{/if}}
</td>
<td>
......
......@@ -25,7 +25,7 @@ Template.cardsetLearnActivityStatistic.helpers({
let totalCards = this.box1 + this.box2 + this.box3 + this.box4 + this.box5 + this.box6;
let percentage = Math.round(count / totalCards * 100);
if (percentage > 0) {
return '<span class="cardPercentage">[' + percentage + ' %]</span>';
return '<span class="cardPercentage"><i class="fas fa-trophy"></i>&nbsp;[' + percentage + ' %]</span>';
}
},
earnedTrophy: function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment