Commit 7f2b7138 authored by Michal Čihař's avatar Michal Čihař

Include check stats in about page

parent ffd3f8b1
......@@ -56,6 +56,14 @@
<th>{% trans "Translations made" %}</th>
<td>{{ total_translations }}</td>
</tr>
<tr>
<th>{% trans "Failing checks found" %}</th>
<td>{{ total_checks }}</td>
</tr>
<tr>
<th>{% trans "Ignored checks" %}</th>
<td>{{ ignored_checks }}</td>
</tr>
</table>
{% endblock %}
......
......@@ -1416,6 +1416,8 @@ def about(request):
context['total_users'] = Profile.objects.count()
context['total_strings'] = total_strings
context['total_languages'] = Language.objects.filter(translation__total__gt = 0).distinct().count()
context['total_checks'] = Check.objects.count()
context['ignored_checks'] = Check.objects.filter(ignore = True).count()
context['versions'] = versions
return render_to_response('about.html', RequestContext(request, context))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment