diff --git a/django_projects/metrics/dashboard/views.py b/django_projects/metrics/dashboard/views.py index 11c6920..1604222 100644 --- a/django_projects/metrics/dashboard/views.py +++ b/django_projects/metrics/dashboard/views.py @@ -78,16 +78,27 @@ def heatmap(request): item.hover += 'Beg
' item.hover += '' + if data == 'perc': + item.hover += '
' + item.hover += '
' + item.hover += '
' + str(advanced) + '
' + item.hover += '
' + item.hover += '
' + str(beginner) + '
' + item.hover += '
' + item.hover += '
' + str(intermediate) + '
' + item.hover += '
' + item.hover += '
' + else: + item.hover += '
' + item.hover += '
' + item.hover += str(advanced) + item.hover += '
' + item.hover += str(intermediate) + item.hover += '
' + item.hover += str(beginner) + item.hover += '
' + item.hover += '
' - item.hover += '
' - item.hover += '
' - item.hover += '
' + str(advanced) + '
' - item.hover += '
' - item.hover += '
' + str(beginner) + '
' - item.hover += '
' - item.hover += '
' + str(intermediate) + '
' - item.hover += '
' - item.hover += '
' if data == 'freq': diff --git a/django_templates/heatmap.html b/django_templates/heatmap.html index c3c5154..6377a39 100644 --- a/django_templates/heatmap.html +++ b/django_templates/heatmap.html @@ -24,6 +24,7 @@ {% endif %} +