Convert Problem Block Mako Templates to Django Templates (#37570)
* fix: convert mako to django templates for problem block * fix: pylint issues
This commit is contained in:
17
xmodule/capa/templates/problem_notifications.html
Normal file
17
xmodule/capa/templates/problem_notifications.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% load i18n %}
|
||||
|
||||
<div class="notification {{ notification_type }} notification-{{ notification_name }}
|
||||
{% if is_hidden != False %}is-hidden{% endif %}"
|
||||
tabindex="-1">
|
||||
<span class="icon fa {{ notification_icon }}" aria-hidden="true"></span>
|
||||
<span class="notification-message" aria-describedby="{{ short_id }}-problem-title">{{ notification_message }}
|
||||
</span>
|
||||
<div class="notification-btn-wrapper">
|
||||
{% if notification_name == 'hint' %}
|
||||
<button type="button" class="btn btn-default btn-small notification-btn hint-button">
|
||||
{% trans "Next Hint" as next_hint_text %}{{ next_hint_text|force_escape }}
|
||||
</button>
|
||||
{% endif %}
|
||||
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">{% trans "Review" as review_text %}{{ review_text|force_escape }}</button>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user