Add friend

This commit is contained in:
cuom1999 2020-06-23 20:46:33 -05:00
parent 5298e6aaa5
commit e951c761f5
12 changed files with 158 additions and 14 deletions

View file

@ -1,5 +1,7 @@
{% extends "user/base-users-table.html" %}
{% set friends = request.profile.get_friends() if request.user.is_authenticated else {} %}
{% block after_rank_head %}
{% if has_rating %}
<th>{{ _('Rating') }}</th>
@ -52,9 +54,7 @@
{% endblock %}
{% block row_extra %}
{% if user.participation.is_disqualified %}
class="disqualified"
{% endif %}
class="{{ 'disqualified' if user.participation.is_disqualified }} {{ 'friend' if user.username in friends }} {{'highlight' if user.username == request.user.username}}"
{% endblock %}
{% block before_point %}