AA-83 special exam icon
- fix template rendering so that pencil icon is displayed for a special exam and also ensure it is not rendered twice
This commit is contained in:
@@ -79,7 +79,7 @@ reset_deadlines_banner_displayed = False
|
||||
class="subsection-text outline-button"
|
||||
id="${ subsection['id'] }"
|
||||
>
|
||||
% if num_graded_problems:
|
||||
% if num_graded_problems and not (subsection.get('format') or 'special_exam_info' in subsection):
|
||||
<span class="icon fa fa-pencil-square-o" aria-hidden="true"></span>
|
||||
% endif
|
||||
<h4 class="subsection-title">
|
||||
@@ -125,7 +125,7 @@ reset_deadlines_banner_displayed = False
|
||||
%>
|
||||
% if subsection.get('format') or 'special_exam_info' in subsection:
|
||||
<span class="subtitle">
|
||||
% if 'special_exam' in subsection:
|
||||
% if 'special_exam_info' in subsection:
|
||||
## Display the exam status icon and status message
|
||||
<span
|
||||
class="menu-icon icon fa ${subsection['special_exam_info'].get('suggested_icon', 'fa-pencil-square-o')} ${subsection['special_exam_info'].get('status', 'eligible')}"
|
||||
|
||||
Reference in New Issue
Block a user