Commit 6c4037b1 by sanfordstudent

Merge pull request #12002 from edx/sstudent/accordion_

making the accordion template escape by default
parents 6917eb03 777b92a0
<%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 = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment