Commit bbeed202 authored by Michal Čihař's avatar Michal Čihař

Include basic activity information on user page (issue #193)

parent d3c690ce
......@@ -48,24 +48,9 @@
{% blocktrans %}You can change password on <a href="{{ pw_url }}">separate page</a>.{% endblocktrans %}
</div>
<div id="info">
<table>
<tr>
<th>{% trans "Suggestions made" %}</th>
<td>{{ profile.suggested }}</td>
</tr>
<tr>
<th>{% trans "Translations made" %}</th>
<td>{{ profile.translated }}</td>
</tr>
<tr>
<th>{% trans "Last login" %}</th>
<td>{{ request.user.last_login|date:"DATETIME_FORMAT" }}</td>
</tr>
<tr>
<th>{% trans "Registration date" %}</th>
<td>{{ request.user.date_joined|date:"DATETIME_FORMAT" }}</td>
</tr>
</table>
{% with request.user as user %}
{% include 'user-activity.html' %}
{% endwith %}
</div>
<div id="avatar">
<p>{% gravatar request.user 128 %}</p>
......
{% load i18n %}
<table>
<tr>
<th>{% trans "Suggestions made" %}</th>
<td>{{ profile.suggested }}</td>
</tr>
<tr>
<th>{% trans "Translations made" %}</th>
<td>{{ profile.translated }}</td>
</tr>
<tr>
<th>{% trans "Last login" %}</th>
<td>{{ user.last_login|date:"DATETIME_FORMAT" }}</td>
</tr>
<tr>
<th>{% trans "Registration date" %}</th>
<td>{{ user.date_joined|date:"DATETIME_FORMAT" }}</td>
</tr>
</table>
......@@ -10,6 +10,12 @@
<h2>{{ page_profile.get_user_name }}</h2>
<h3>{% trans "Activity" %}</h3>
{% with page_profile as profile and page_user as user %}
{% include 'user-activity.html' %}
{% endwith %}
<h3>{% trans "Recent contributions" %}</h3>
{% include "last-changes.html" %}
......
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