Commit c27b0d95 authored by Curtis Adam's avatar Curtis Adam

Display the card type on the leitner chart filter results

parent 6781ceb6
......@@ -59,6 +59,8 @@ $themes: (
$shuffled_text: map-get($map, "shuffled_text");
$bonus_background: map-get($map, "bonus_background");
$bonus_text: map-get($map, "bonus_text");
$card_type_background: map-get($map, "card_type_background");
$card_type_text: map-get($map, "card_type_text");
//ratings
$current_rating: map-get($map, "current_rating");
$hover_rating: map-get($map, "$hover_rating");
......@@ -1618,7 +1620,7 @@ $themes: (
.mobilePreviewContent {
.box-difficultyLined3 {
background: $background_difficulty3 !important;
background: $background_difficulty3 !important;
}
}
......@@ -2116,6 +2118,11 @@ $themes: (
color: $bonus_text !important;
}
.label-card-type {
background-color: $card_type_background !important;
color: $card_type_text !important;
}
.moduleRadioButtonLabel {
color: $white !important;
}
......
......@@ -79,6 +79,8 @@
"shuffled_text": $white,
"bonus_background": $thm_red,
"bonus_text": $white,
"card_type_background": $thm_blue,
"card_type_text": black,
//ratings
"current_rating": $thm_orange,
"$hover_rating": $thm_blue,
......
......@@ -81,6 +81,8 @@
"shuffled_text": $white,
"bonus_background": $thm_red,
"bonus_text": $white,
"card_type_background": $thm_blue,
"card_type_text": black,
//ratings
"current_rating": $thm_orange,
"$hover_rating": $thm_blue,
......
......@@ -125,6 +125,10 @@ Template.registerHelper("getKindText", function (kind, displayType = 0) {
}
});
Template.registerHelper("getCardTypeLabel", function (cardType) {
return '<span class="label label-card-type" data-id="difficulty" title="' + TAPi18n.__('card.cardType' + cardType + '.longName') + '">' + TAPi18n.__('card.cardType' + cardType + '.name') + '</span>';
});
Template.registerHelper("getDifficultyLabel", function (cardType, difficulty) {
if (!CardType.gotDifficultyLevel(cardType)) {
difficulty = 0;
......
......@@ -68,6 +68,7 @@
<span class="badge" title="{{_ "cardset.info.quantity"}}">
{{this.quantity}}
</span>
{{{getCardTypeLabel this.cardType}}}
{{{getDifficultyLabel this.cardType this.difficulty}}}
</div>
</a>
......
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