From 2a02d36779aaa6cefc1b4c5029e7454d4113cbd6 Mon Sep 17 00:00:00 2001
From: Akshit jain
Date: Thu, 10 Jan 2019 21:57:14 +0530
Subject: [PATCH] .coafiles: Add jinja2bear
jinja2bear is added for templates
Closes https://github.com/coala/community/issues/129
---
.coafile | 5 +++++
templates/contributors.html | 2 +-
templates/gamification.html | 6 +++---
templates/index.html | 2 +-
templates/openhub.html | 7 +++----
5 files changed, 13 insertions(+), 9 deletions(-)
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 #}