Skip to content

Commit ff6c2c4

Browse files
committed
fix: resolve Django TemplateSyntaxError issues in student_class.html caused by multi-line tags and missing == spaces
1 parent 0a832b5 commit ff6c2c4

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

services/classhub/templates/student_class.html

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h3>This week</h3>
107107
<section class="landing-section">
108108
<h3>Course links</h3>
109109
{% if class_landing.course_lesson_links %}
110-
<details class="landing-course-map" {% if ui_density_mode=="expanded" %}open{% endif %}>
110+
<details class="landing-course-map" {% if ui_density_mode == "expanded" %}open{% endif %}>
111111
<summary>View full course lesson links</summary>
112112
<ul>
113113
{% for row in class_landing.course_lesson_links %}
@@ -193,8 +193,7 @@ <h2>How to tell you are done</h2>
193193
{% if modules %}
194194
{% for m in modules %}
195195
{% with module_release=class_landing.module_release_map|get_item:m.id %}
196-
<details class="card module" id="module-{{ m.id }}" {% if class_landing.highlight_module_id==m.id or
197-
ui_density_mode=="expanded" %}open{% endif %}>
196+
<details class="card module" id="module-{{ m.id }}" {% if class_landing.highlight_module_id == m.id or ui_density_mode == "expanded" %}open{% endif %}>
198197
<summary class="module-summary">
199198
<span class="module-title">{{ m.title }}</span>
200199
{% if module_release %}
@@ -264,8 +263,7 @@ <h2>How to tell you are done</h2>
264263
{% endif %}
265264
{% endwith %}
266265
{% elif mat.type == 'gallery' %}
267-
{% with s=submissions_by_material|get_item:mat.id access=material_access|get_item:mat.id
268-
gallery_entries=gallery_entries_by_material|get_item:mat.id %}
266+
{% with s=submissions_by_material|get_item:mat.id access=material_access|get_item:mat.id gallery_entries=gallery_entries_by_material|get_item:mat.id %}
269267
{% if access.is_lesson_upload and access.is_locked %}
270268
<div class="status-row">
271269
<span class="state-pill state-pill--locked">Locked</span>
@@ -310,8 +308,7 @@ <h2>How to tell you are done</h2>
310308
{% endif %}
311309
{% endwith %}
312310
{% elif mat.type == 'checklist' %}
313-
{% with access=material_access|get_item:mat.id items=material_checklist_items|get_item:mat.id
314-
state=material_responses|get_item:mat.id %}
311+
{% with access=material_access|get_item:mat.id items=material_checklist_items|get_item:mat.id state=material_responses|get_item:mat.id %}
315312
{% if access.is_lesson_activity and access.is_locked %}
316313
<div class="status-row">
317314
<span class="state-pill state-pill--locked">Locked</span>
@@ -332,8 +329,7 @@ <h2>How to tell you are done</h2>
332329
{% csrf_token %}
333330
{% for item in items %}
334331
<label class="checklist-item-row">
335-
<input type="checkbox" name="checked_item" value="{{ forloop.counter0 }}" {% if state and
336-
forloop.counter0 in state.checklist_checked %}checked{% endif %} />
332+
<input type="checkbox" name="checked_item" value="{{ forloop.counter0 }}" {% if state and forloop.counter0 in state.checklist_checked %}checked{% endif %} />
337333
<span>{{ item }}</span>
338334
</label>
339335
{% endfor %}
@@ -380,8 +376,7 @@ <h2>How to tell you are done</h2>
380376
{% endif %}
381377
{% endwith %}
382378
{% elif mat.type == 'rubric' %}
383-
{% with access=material_access|get_item:mat.id state=material_responses|get_item:mat.id
384-
spec=material_rubric_specs|get_item:mat.id %}
379+
{% with access=material_access|get_item:mat.id state=material_responses|get_item:mat.id spec=material_rubric_specs|get_item:mat.id %}
385380
{% if access.is_lesson_activity and access.is_locked %}
386381
<div class="status-row">
387382
<span class="state-pill state-pill--locked">Locked</span>
@@ -411,7 +406,7 @@ <h2>How to tell you are done</h2>
411406
<select id="rubric-criterion-{{ mat.id }}-{{ criterion_index }}" name="criterion_{{ criterion_index }}">
412407
<option value="">Not scored</option>
413408
{% for score in spec.scale_values %}
414-
<option value="{{ score }}" {% if selected_score==score %}selected{% endif %}>{{ score }}</option>
409+
<option value="{{ score }}" {% if selected_score == score %}selected{% endif %}>{{ score }}</option>
415410
{% endfor %}
416411
</select>
417412
{% endwith %}

0 commit comments

Comments
 (0)