Commit d2fccc6a authored by Curtis Adam's avatar Curtis Adam

Display more information on the repetitorium index

parent 02638612
......@@ -2629,5 +2629,12 @@ $themes: (
.loadingScreenContainer .fa {
color: $loading_screen_icon !important;
}
.cardListName.btn-raised {
.badge {
background-color: $primary !important;
color: white !important;
}
}
}
}
......@@ -561,6 +561,12 @@
{{getAuthorName this.owner}}
</span>
{{/unless}}
<br>
<span class="badge" title="{{_ "cardset.info.quantity"}}">
{{this.quantity}}
</span>
{{{getCardTypeLabel this.cardType}}}
{{{getDifficultyLabel this.cardType this.difficulty}}}
</div>
{{/if}}
{{#each cardSubject}}
......
......@@ -271,7 +271,7 @@ Template.cardsetList.helpers({
if (this.shuffled) {
let cardsetFilter = [];
let sortCardsets = Cardsets.find({_id: {$in: this.cardGroups}}, {
sort: {name: 1}, fields: {_id: 1, name: 1, kind: 1, owner: 1}
sort: {name: 1}, fields: {_id: 1, name: 1, kind: 1, owner: 1, quantity: 1, difficulty: 1, cardType: 1}
}).fetch();
sortCardsets.forEach(function (cardset) {
if (cardset._id !== cardsetId) {
......
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