<%page expression_filter="h"/> <%! from django.utils.translation import ugettext as _ from lms.djangoapps.django_comment_client.constants import TYPE_ENTRY from openedx.core.djangolib.markup import HTML %> <%def name="render_dropdown(map)"> % for child, c_type in map["children"]: % if child in map["entries"] and c_type == TYPE_ENTRY: ${HTML(render_entry(map["entries"], child))} %else: ${HTML(render_category(map["subcategories"], child))} %endif %endfor <%def name="render_entry(entries, entry)">
  • % if entry: ${entry} %endif
  • <%def name="render_category(categories, category)">
  • ${category}