Skip to content

Commit f0bc8dd

Browse files
committed
Make include variables explicit
This removes doubt about what data is used when rendering the includes.
1 parent 31dd1c5 commit f0bc8dd

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

cbv/templates/cbv/klass_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
{% block nav %}
38-
{% include "cbv/includes/nav.html" %}
38+
{% include "cbv/includes/nav.html" with nav=nav version_switcher=version_switcher only %}
3939
{% endblock nav %}
4040

4141

cbv/templates/cbv/module_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
{% block nav %}
8-
{% include "cbv/includes/nav.html" %}
8+
{% include "cbv/includes/nav.html" with nav=nav version_switcher=version_switcher only %}
99
{% endblock nav %}
1010

1111
{% block page_header %}<h1>{{ module_name }}</h1>{% endblock %}

cbv/templates/cbv/version_detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
{% block nav %}
14-
{% include "cbv/includes/nav.html" %}
14+
{% include "cbv/includes/nav.html" with nav=nav version_switcher=version_switcher only %}
1515
{% endblock %}
1616

1717

@@ -22,7 +22,7 @@
2222
</div>
2323
<h1>{{ project }}</h1>
2424
<div class="row">
25-
{% include 'cbv/_klass_list.html' with column_width=6 %}
25+
{% include 'cbv/_klass_list.html' with column_width=6 object_list=object_list only %}
2626
</div>
2727
</div>
2828
{% endblock %}

cbv/templates/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% load static %}
44

55
{% block nav %}
6-
{% include "cbv/includes/nav.html" %}
6+
{% include "cbv/includes/nav.html" with nav=nav version_switcher=version_switcher only %}
77
{% endblock %}
88

99

@@ -31,7 +31,7 @@ <h2>Did you know?</h2>
3131
</div>
3232
<h2>Start Here for {{ project }}.</h2>
3333
<div class="row">
34-
{% include 'cbv/_klass_list.html' with column_width=3 %}
34+
{% include 'cbv/_klass_list.html' with column_width=3 object_list=object_list only %}
3535
</div>
3636
</div>
3737
</div>

0 commit comments

Comments
 (0)