Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0a5ec531
Commit
0a5ec531
authored
Feb 15, 2017
by
Sanford Student
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving main
parent
7fd52780
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
33 deletions
+37
-33
lms/templates/courseware/courseware-chromeless.html
+4
-2
lms/templates/courseware/courseware.html
+33
-31
No files found.
lms/templates/courseware/courseware-chromeless.html
View file @
0a5ec531
...
...
@@ -70,8 +70,10 @@ ${HTML(fragment.foot_html())}
</
%
block>
<div
class=
"course-wrapper"
>
<main
class=
"course-content"
id=
"main"
tabindex=
"-1"
aria-label=
"Content"
>
${HTML(fragment.body_html())}
<section
class=
"course-content"
id=
"course-content"
>
<main
id=
"main"
tabindex=
"-1"
aria-label=
"Content"
>
${HTML(fragment.body_html())}
</main>
</section>
</div>
% if course.show_calculator or is_edxnotes_enabled(course):
...
...
lms/templates/courseware/courseware.html
View file @
0a5ec531
...
...
@@ -150,40 +150,42 @@ ${HTML(fragment.foot_html())}
</div>
% endif
<main
class=
"course-content"
id=
"main"
tabindex=
"-1"
aria-label=
"Content"
>
<div
class=
"path"
></div>
% if getattr(course, 'entrance_exam_enabled') and \
getattr(course, 'entrance_exam_minimum_score_pct') and \
entrance_exam_current_score is not UNDEFINED:
% if not entrance_exam_passed:
<p
class=
"sequential-status-message"
>
${_('To access course materials, you must score {required_score}% or higher on this \
exam. Your current score is {current_score}%.').format(
required_score=int(round(course.entrance_exam_minimum_score_pct * 100)),
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
<script
type=
"text/javascript"
>
$
(
document
).
ajaxSuccess
(
function
(
event
,
xhr
,
settings
)
{
if
(
settings
.
url
.
indexOf
(
"xmodule_handler/problem_check"
)
>
-
1
)
{
var
data
=
JSON
.
parse
(
xhr
.
responseText
);
if
(
data
.
entrance_exam_passed
){
location
.
reload
();
<section
class=
"course-content"
id=
"course-content"
>
<main
id=
"main"
tabindex=
"-1"
aria-label=
"Content"
>
<div
class=
"path"
></div>
% if getattr(course, 'entrance_exam_enabled') and \
getattr(course, 'entrance_exam_minimum_score_pct') and \
entrance_exam_current_score is not UNDEFINED:
% if not entrance_exam_passed:
<p
class=
"sequential-status-message"
>
${_('To access course materials, you must score {required_score}% or higher on this \
exam. Your current score is {current_score}%.').format(
required_score=int(round(course.entrance_exam_minimum_score_pct * 100)),
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
<script
type=
"text/javascript"
>
$
(
document
).
ajaxSuccess
(
function
(
event
,
xhr
,
settings
)
{
if
(
settings
.
url
.
indexOf
(
"xmodule_handler/problem_check"
)
>
-
1
)
{
var
data
=
JSON
.
parse
(
xhr
.
responseText
);
if
(
data
.
entrance_exam_passed
){
location
.
reload
();
}
}
}
});
</script>
% else:
<p
class=
"sequential-status-message"
>
${_('Your score is {current_score}%. You have passed the entrance exam.').format(
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
}
);
</script>
% else:
<p
class=
"sequential-status-message"
>
${_('Your score is {current_score}%. You have passed the entrance exam.').format(
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
% endif
% endif
% endif
${HTML(fragment.body_html())}
</main>
${HTML(fragment.body_html())}
</main>
</section>
<section
class=
"courseware-results-wrapper"
>
<div
id=
"loading-message"
aria-live=
"polite"
aria-relevant=
"all"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment