Merge pull request #8627 from Stanford-Online/nick/fix-tab-templates
Fix hint-problem tab bug TNL-2542
This commit is contained in:
@@ -282,8 +282,8 @@ def get_component_templates(courselike, library=False):
|
||||
tab = 'common'
|
||||
if template['metadata'].get('markdown') is None:
|
||||
tab = 'advanced'
|
||||
# Then the problem can override that with a tab: setting
|
||||
tab = template['metadata'].get('tab', tab)
|
||||
# Then the problem can override that with a tab: attribute (note: not nested in metadata)
|
||||
tab = template.get('tab', tab)
|
||||
|
||||
templates_for_category.append(
|
||||
create_template_dict(
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
<li class="current">
|
||||
<a class="link-tab" href="#tab1"><%= gettext("Common Problem Types") %></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="link-tab" href="#tab2"><%= gettext("Common Problems with Hints and Feedback") %></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="link-tab" href="#tab3"><%= gettext("Advanced") %></a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user