chore: resolved conflicts
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
"chart.js": "^4.4.1",
|
"chart.js": "^4.4.1",
|
||||||
"dayjs": "^1.11.6",
|
"dayjs": "^1.11.6",
|
||||||
"feather-icons": "^4.28.0",
|
"feather-icons": "^4.28.0",
|
||||||
"frappe-ui": "^0.1.35",
|
"frappe-ui": "^0.1.46",
|
||||||
"lucide-vue-next": "^0.309.0",
|
"lucide-vue-next": "^0.309.0",
|
||||||
"markdown-it": "^14.0.0",
|
"markdown-it": "^14.0.0",
|
||||||
"pinia": "^2.0.33",
|
"pinia": "^2.0.33",
|
||||||
|
|||||||
2062
frontend/yarn.lock
Normal file
2062
frontend/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -279,6 +279,8 @@ def check_choice_answers(question, answers):
|
|||||||
for num in range(1, 5):
|
for num in range(1, 5):
|
||||||
if question_details[f"option_{num}"] in answers:
|
if question_details[f"option_{num}"] in answers:
|
||||||
is_correct.append(question_details[f"is_correct_{num}"])
|
is_correct.append(question_details[f"is_correct_{num}"])
|
||||||
|
elif question_details[f"is_correct_{num}"]:
|
||||||
|
is_correct.append(2)
|
||||||
else:
|
else:
|
||||||
is_correct.append(0)
|
is_correct.append(0)
|
||||||
|
|
||||||
|
|||||||
@@ -29,10 +29,6 @@
|
|||||||
<button class="btn btn-primary btn-sm notify-me pull-right" data-course="{{course.name | urlencode}}">
|
<button class="btn btn-primary btn-sm notify-me pull-right" data-course="{{course.name | urlencode}}">
|
||||||
{{ _("Notify me when available") }}
|
{{ _("Notify me when available") }}
|
||||||
</button>
|
</button>
|
||||||
{% elif show_start_learing_cta(course, membership) %}
|
|
||||||
<button class="btn btn-primary btn-sm enroll-in-course pull-right" data-course="{{ course.name | urlencode}}">
|
|
||||||
{{ _("Start Learning") }}
|
|
||||||
</button>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -239,7 +239,9 @@ const parse_choices = (element, is_correct) => {
|
|||||||
? add_icon(elem, "check")
|
? add_icon(elem, "check")
|
||||||
: add_icon(elem, "wrong");
|
: add_icon(elem, "wrong");
|
||||||
} else {
|
} else {
|
||||||
add_icon(elem, "minus-circle");
|
if (this.show_answers && is_correct[i] == 2)
|
||||||
|
add_icon(elem, "minus-circle-green");
|
||||||
|
else add_icon(elem, "minus-circle");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,8 +6,4 @@
|
|||||||
<a class="btn btn-secondary btn-sm" href="/login?redirect-to=/courses/{{ course.name }}">
|
<a class="btn btn-secondary btn-sm" href="/login?redirect-to=/courses/{{ course.name }}">
|
||||||
{{ _("Write a review") }}
|
{{ _("Write a review") }}
|
||||||
</a>
|
</a>
|
||||||
{% elif show_start_learing_cta(course, membership) %}
|
|
||||||
<div class="btn btn-secondary btn-sm enroll-in-course" data-course="{{ course.name | urlencode }}">
|
|
||||||
{{ _("Start Learning") }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user