2012-02-29 11:16:05 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<h2>{% trans "Projects" %}</h2>
|
|
|
|
|
2012-03-05 13:43:33 +01:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "Project" %}</th>
|
|
|
|
<th colspan="2">{% trans "Translated" %}</th>
|
|
|
|
</tr>
|
|
|
|
<tbody>
|
2012-02-29 11:16:05 +01:00
|
|
|
{% for prj in projects %}
|
2012-03-05 13:43:33 +01:00
|
|
|
{% with prj.get_translated_percent as percent %}
|
|
|
|
<tr>
|
|
|
|
<th><a href="{{ prj.get_absolute_url }}">{{ prj.name }}</a></th>
|
|
|
|
<td class="percent">{{ percent }}%</td>
|
|
|
|
<td class="progress"><div class="progress" id="{{ percent|floatformat:0 }}"></div></td>
|
|
|
|
</tr>
|
|
|
|
{% endwith %}
|
2012-02-29 11:16:05 +01:00
|
|
|
{% endfor %}
|
2012-03-05 13:43:33 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2012-02-29 11:16:05 +01:00
|
|
|
|
2012-03-05 13:55:09 +01:00
|
|
|
<h2>{% trans "Users" %}</h2>
|
|
|
|
|
|
|
|
<h3>{% trans "Best translators" %}</h3>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "User" %}</th>
|
|
|
|
<th>{% trans "Translated" %}</th>
|
|
|
|
</tr>
|
|
|
|
<tbody>
|
|
|
|
{% for u in top_translations %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ u.user.get_full_name }}</td>
|
|
|
|
<td class="percent">{{ u.translated }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h3>{% trans "Best suggestions" %}</h3>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "User" %}</th>
|
|
|
|
<th>{% trans "Suggested" %}</th>
|
|
|
|
</tr>
|
|
|
|
<tbody>
|
|
|
|
{% for u in top_suggestions %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ u.user.get_full_name }}</td>
|
|
|
|
<td class="percent">{{ u.suggested }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2012-02-29 11:16:05 +01:00
|
|
|
{% endblock %}
|
|
|
|
|