diff --git a/.coafile b/.coafile index 0707b389..edfbf0ec 100644 --- a/.coafile +++ b/.coafile @@ -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 diff --git a/templates/contributors.html b/templates/contributors.html index bc86a70b..1e079ab0 100644 --- a/templates/contributors.html +++ b/templates/contributors.html @@ -34,7 +34,7 @@

Details of all the contributors

teams: {% for team in contributor.teams.all %} {{ team.name }} - {% endfor %} + {% endfor %}{# for team in contributor.teams.all #}

diff --git a/templates/gamification.html b/templates/gamification.html index 86ae3005..48becb65 100644 --- a/templates/gamification.html +++ b/templates/gamification.html @@ -32,11 +32,11 @@

The gamification leaderboard

{{ forloop.counter }}. {{ activity.name }}, performed_at: {{ activity.performed_at }} updated_at: {{ activity.updated_at }}

- {% endfor %} + {% endfor %}{# for activity in participant.activities.all #}

Badges Earned: {% for badge in participant.badges.all %}

{{ forloop.counter }}.{{ badge.name }}

- {% endfor %} + {% endfor %}{# for badge in participant.badges.all #}

@@ -44,7 +44,7 @@

The gamification leaderboard


- {% endfor %}{# for contributor in contributors #} + {% endfor %}{# for participant in participants #} diff --git a/templates/index.html b/templates/index.html index ac8b5703..80530eeb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,6 +24,6 @@ {% if isTravis %} This website was built automatically using Travis CI. A link to the build can be found here. - {% endif %} + {% endif %}{# if isTravis #} diff --git a/templates/openhub.html b/templates/openhub.html index 0f187211..cfdb3a02 100644 --- a/templates/openhub.html +++ b/templates/openhub.html @@ -10,9 +10,9 @@

All of our Portfolio Projects

- {% for error in errors %} + {% for error in errors %}

{{ error | safe }}

- {% endfor %} + {% endfor %}{# for error in errors #} {% for project in projects %}
@@ -38,6 +38,5 @@

All of our Portfolio Projects


- {% endfor %}{# for project in projects #} - + {% endfor %}{# for project in projects #} {# for project in projects #}