Commit 78d8f945 authored by Curtis Adam's avatar Curtis Adam

Display number of Pomodori determined by instructor (below daily workload)

parent 436a11f7
......@@ -51,6 +51,20 @@
}
}
},
"cardsetInfo": {
"count": {
"label": "Tägliche Lernzeit",
"content": "__count__ <a href=\"__link__\" data-toggle=\"tooltip\" title=\"__tooltip__\" target=\"_blank\">__pomodoro__ 🍅</a>"
},
"work": {
"label": "Lernzeit pro Pomodoro",
"content": "__minutes__"
},
"break": {
"label": "Pausenlänge",
"content": "__minutes__"
}
},
"form": {
"time": {
"hour": "1 Stunde",
......
......@@ -1432,6 +1432,18 @@
<td>{{getWorkload}}</td>
</tr>
<tr>
<td>{{_ "pomodoro.cardsetInfo.count.label"}}:</td>
<td>{{{getPomodoroCount}}}</td>
</tr>
<tr>
<td>{{_ "pomodoro.cardsetInfo.work.label"}}:</td>
<td>{{{getPomodoroWorkTime}}}</td>
</tr>
<tr>
<td>{{_ "pomodoro.cardsetInfo.break.label"}}:</td>
<td>{{{getPomodoroBreakTime}}}</td>
</tr>
<tr>
<td>{{_ "bonus.form.daysBeforeReset.label"}}:</td>
<td>{{getDeadline}}</td>
</tr>
......
......@@ -1600,6 +1600,20 @@ Template.learningPhaseInfoBox.helpers({
return this.maxCards + " " + TAPi18n.__('confirmLearn-form.cards');
}
},
getPomodoroCount: function () {
return TAPi18n.__('pomodoro.cardsetInfo.count.content', {
count: this.pomodoroTimer.quantity,
link: TAPi18n.__('pomodoro.form.link'),
tooltip: TAPi18n.__('pomodoro.form.tooltip.link', {pomodoro: TAPi18n.__('pomodoro.name')}),
pomodoro: TAPi18n.__('pomodoro.name', {count: this.pomodoroTimer.quantity})
});
},
getPomodoroWorkTime: function () {
return TAPi18n.__('pomodoro.cardsetInfo.work.content', {minutes: TAPi18n.__('pomodoro.form.time.minute', {count: this.pomodoroTimer.workLength})});
},
getPomodoroBreakTime: function () {
return TAPi18n.__('pomodoro.cardsetInfo.break.content', {minutes: TAPi18n.__('pomodoro.form.time.minute', {count: this.pomodoroTimer.breakLength})});
},
canJoinBonus: function () {
return Bonus.canJoinBonus(Session.get('activeCardset')._id);
},
......
......@@ -336,6 +336,12 @@ $padding-card-list-row: 8px;
z-index: 50;
}
#collapseLearningPhaseInfo {
a {
display: inline;
}
}
.collapseCardsetInfoContainer {
display: block;
min-height: 58px;
......
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