This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -360,4 +360,4 @@ def workbench_scenarios(): | |
<scormxblock/> | ||
</vertical_demo> | ||
"""), | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
{% load i18n %} | ||
|
||
<div class="scormxblock_block"> | ||
{% if scorm_file_path %} | ||
|
||
{% if scorm_xblock.has_score %} | ||
<p>(<span class="lesson_score">{{ scorm_xblock.lesson_score }}</span>/{{ scorm_xblock.weight }} {% trans "points" %}) <span class="completion_status">{% trans completion_status %}</span></p> | ||
<p> | ||
(<span class="lesson_score">{{ scorm_xblock.lesson_score }}</span>/{{ scorm_xblock.weight }} {% trans "points" %}) | ||
<span class="completion_status">{% trans completion_status %}</span> | ||
</p> | ||
{% endif %} | ||
{% if scorm_file_path %} | ||
<iframe class="scorm_object" | ||
src="{{ scorm_file_path }}" | ||
width="{% if scorm_xblock.width %}{{ scorm_xblock.width }}{% else %}100%{% endif %}" | ||
height="{{ scorm_xblock.height }}"></iframe> | ||
|
||
<div class="js-scorm-block"> | ||
<div class="scorm_button"> | ||
<button class="js-button-full-screen full-screen-on"> | ||
{% trans "Full screen" %} | ||
</button> | ||
<button class="js-button-full-screen full-screen-off"> | ||
{% trans "Exit full screen" %} | ||
</button> | ||
</div> | ||
|
||
<iframe class="scorm_object" | ||
src="{{ scorm_file_path }}" | ||
width="{% if scorm_xblock.width %}{{ scorm_xblock.width }}{% else %}100%{% endif %}" | ||
height="{{ scorm_xblock.height }}" | ||
></iframe> | ||
</div> | ||
{% endif %} | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters