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
6c4037b1
Commit
6c4037b1
authored
Apr 01, 2016
by
sanfordstudent
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12002 from edx/sstudent/accordion_
making the accordion template escape by default
parents
6917eb03
777b92a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
lms/templates/courseware/accordion.html
+6
-1
No files found.
lms/templates/courseware/accordion.html
View file @
6c4037b1
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
from
util
.
date_utils
import
get_time_display
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
conf
import
settings
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
%
>
<
%
def
name=
"make_chapter(chapter)"
>
...
...
@@ -25,7 +27,10 @@ else:
% for section in chapter['sections']:
<div
class=
"menu-item ${'active' if 'active' in section and section['active'] else ''} ${'graded' if 'graded' in section and section['graded'] else ''}"
>
<a
href=
"${reverse('courseware_section', args=[course_id, chapter['url_name'], section['url_name']])}"
>
<p>
${section['display_name']} ${'
<span
class=
"sr"
>
current section
</span>
' if 'active' in section and section['active'] else ''}
</p>
<p>
${section['display_name']} ${Text(_('{span_start}current section{span_end}')).format(
span_start=HTML('
<span
class=
"sr"
>
'),
span_end=HTML('
</span>
'),
) if 'active' in section and section['active'] else ''}
</p>
<
%
if
section
.
get
('
due
')
is
None:
due_date =
''
...
...
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