Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.coafiles: Add jinja2bear
Browse files Browse the repository at this point in the history
jinja2bear is added for templates

Closes #129
AkshJain99 authored and KVGarg committed Feb 4, 2019
1 parent 91f0224 commit 2a02d36
Showing 5 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -67,3 +67,8 @@ keywords = coala
bears = PyPluralNamingBear
files = **.py
ignore_list = LOGGING, MIDDLEWARE

[all.jinja]
files = templates/**.html
bears = Jinja2Bear
check_end_labels = False
2 changes: 1 addition & 1 deletion templates/contributors.html
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ <h1>Details of all the contributors</h1>
<p>teams:
{% for team in contributor.teams.all %}
{{ team.name }}
{% endfor %}
{% endfor %}{# for team in contributor.teams.all #}
</p>
</div>
</div>
6 changes: 3 additions & 3 deletions templates/gamification.html
Original file line number Diff line number Diff line change
@@ -32,19 +32,19 @@ <h1>The gamification leaderboard</h1>
<p>{{ forloop.counter }}. {{ activity.name }}, performed_at:
{{ activity.performed_at }} updated_at: {{ activity.updated_at }}
</p>
{% endfor %}
{% endfor %}{# for activity in participant.activities.all #}
<p>Badges Earned:
{% for badge in participant.badges.all %}
<p>{{ forloop.counter }}.{{ badge.name }}</p>
{% endfor %}
{% endfor %}{# for badge in participant.badges.all #}
</p>
</div>
</div>
</div>
</div>
</div>
<hr>
{% endfor %}{# for contributor in contributors #}
{% endfor %}{# for participant in participants #}
</ul>
</body>
</html>
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
@@ -24,6 +24,6 @@
</ul>
{% if isTravis %}
<small>This website was built automatically using Travis CI. A link to the build can be found <a href="{{ travisLink }}">here</a>.</small>
{% endif %}
{% endif %}{# if isTravis #}
</body>
</html>
7 changes: 3 additions & 4 deletions templates/openhub.html
Original file line number Diff line number Diff line change
@@ -10,9 +10,9 @@
</head>
<body>
<h1>All of our Portfolio Projects</h1>
{% for error in errors %}
{% for error in errors %}
<p>{{ error | safe }}</p>
{% endfor %}
{% endfor %}{# for error in errors #}

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

0 comments on commit 2a02d36

Please sign in to comment.