Skip to content

Commit 2a02d36

Browse files
AkshJain99KVGarg
authored andcommittedFeb 4, 2019
.coafiles: Add jinja2bear
jinja2bear is added for templates Closes #129
1 parent 91f0224 commit 2a02d36

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed
 

‎.coafile

+5
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,8 @@ keywords = coala
6767
bears = PyPluralNamingBear
6868
files = **.py
6969
ignore_list = LOGGING, MIDDLEWARE
70+
71+
[all.jinja]
72+
files = templates/**.html
73+
bears = Jinja2Bear
74+
check_end_labels = False

‎templates/contributors.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>Details of all the contributors</h1>
3434
<p>teams:
3535
{% for team in contributor.teams.all %}
3636
{{ team.name }}
37-
{% endfor %}
37+
{% endfor %}{# for team in contributor.teams.all #}
3838
</p>
3939
</div>
4040
</div>

‎templates/gamification.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ <h1>The gamification leaderboard</h1>
3232
<p>{{ forloop.counter }}. {{ activity.name }}, performed_at:
3333
{{ activity.performed_at }} updated_at: {{ activity.updated_at }}
3434
</p>
35-
{% endfor %}
35+
{% endfor %}{# for activity in participant.activities.all #}
3636
<p>Badges Earned:
3737
{% for badge in participant.badges.all %}
3838
<p>{{ forloop.counter }}.{{ badge.name }}</p>
39-
{% endfor %}
39+
{% endfor %}{# for badge in participant.badges.all #}
4040
</p>
4141
</div>
4242
</div>
4343
</div>
4444
</div>
4545
</div>
4646
<hr>
47-
{% endfor %}{# for contributor in contributors #}
47+
{% endfor %}{# for participant in participants #}
4848
</ul>
4949
</body>
5050
</html>

‎templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
</ul>
2525
{% if isTravis %}
2626
<small>This website was built automatically using Travis CI. A link to the build can be found <a href="{{ travisLink }}">here</a>.</small>
27-
{% endif %}
27+
{% endif %}{# if isTravis #}
2828
</body>
2929
</html>

‎templates/openhub.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
</head>
1111
<body>
1212
<h1>All of our Portfolio Projects</h1>
13-
{% for error in errors %}
13+
{% for error in errors %}
1414
<p>{{ error | safe }}</p>
15-
{% endfor %}
15+
{% endfor %}{# for error in errors #}
1616

1717
{% for project in projects %}
1818
<div class="container">
@@ -38,6 +38,5 @@ <h1>All of our Portfolio Projects</h1>
3838
</div>
3939
</div>
4040
<hr>
41-
{% endfor %}{# for project in projects #}
42-
</body>
41+
{% endfor %}{# for project in projects #} {# for project in projects #} </body>
4342
</html>

0 commit comments

Comments
 (0)