Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
c9f17428
Commit
c9f17428
authored
8 years ago
by
sanfordstudent
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #14511 from edx/sstudent/TNL-6351
moving tabindex
parents
fc8e7fe2
0a5ec531
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/templates/courseware/courseware-chromeless.html
+3
-1
3 additions, 1 deletion
lms/templates/courseware/courseware-chromeless.html
lms/templates/courseware/courseware.html
+30
-30
30 additions, 30 deletions
lms/templates/courseware/courseware.html
with
33 additions
and
31 deletions
lms/templates/courseware/courseware-chromeless.html
+
3
−
1
View file @
c9f17428
...
...
@@ -71,7 +71,9 @@ ${HTML(fragment.foot_html())}
<div
class=
"course-wrapper"
>
<section
class=
"course-content"
id=
"course-content"
>
${HTML(fragment.body_html())}
<main
id=
"main"
tabindex=
"-1"
aria-label=
"Content"
>
${HTML(fragment.body_html())}
</main>
</section>
</div>
% if course.show_calculator or is_edxnotes_enabled(course):
...
...
This diff is collapsed.
Click to expand it.
lms/templates/courseware/courseware.html
+
30
−
30
View file @
c9f17428
...
...
@@ -151,39 +151,39 @@ ${HTML(fragment.foot_html())}
</div>
% endif
<section
class=
"course-content"
id=
"course-content"
>
<div
class=
"path"
></div>
<main
id=
"main"
aria-label=
"Content"
tabindex=
"-1"
>
% 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
();
<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())}
${HTML(fragment.body_html())}
</main>
</section>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment