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
ec164e0b
Commit
ec164e0b
authored
Apr 30, 2012
by
pmitros
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #24 from MITx/ps-fix-accordian
Use inline if-else to cleanup HTML
parents
2bf97144
c2ba37b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
templates/accordion.html
+2
-11
No files found.
templates/accordion.html
View file @
ec164e0b
...
...
@@ -7,21 +7,12 @@
<ul>
% for section in chapter['sections']:
<li
%
if
'
active
'
in
section
and
section
['
active
']
:
class=
"active"
%
endif
>
<li
${'
class=
"active"
'
if
'
active
'
in
section
and
section
['
active
']
else
''}
>
<a
href=
"${reverse('courseware_section', args=format_url_params([course_name, chapter['name'], section['name']]))}"
>
<p>
${section['name']}
</p>
<p
class=
"subtitle"
>
${section['format']}
% if 'due' in section and section['due']!="":
due ${section['due']}
% endif
${section['format']} ${"due " + section['due'] if 'due' in section and section['due'] != '' else ''}
</p>
</a>
% endfor
...
...
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