Improve Matmat, still needs a profile form

This commit is contained in:
Skia
2017-05-10 19:14:52 +02:00
parent b3bc33a319
commit e00c948da9
6 changed files with 123 additions and 13 deletions

View File

@ -14,10 +14,15 @@
</form>
{% else %}
<p>{% trans matmat = user.matmat_user.matmat %}You are subscribed to the Matmatronch {{ matmat }}{% endtrans %}</p>
{% for u in user.matmat_user.matmat.users.all() %}
{% for u in user.matmat_user.matmat.users.exclude(id=user.matmat_user.id) %}
<div class="ib">
<div>{{ u.user.get_display_name() }}</div>
<a>Comment</a>
{% set comment = u.received_comments.filter(author__id=user.matmat_user.id).first() %}
{% if comment %}
<a href="{{ url("matmat:edit_comment", comment_id=comment.id) }}">Edit comment</a>
{% else %}
<a href="{{ url("matmat:new_comment", user_id=u.id) }}">Comment</a>
{% endif %}
</div>
{% endfor %}
{% endif %}