mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
29 lines
625 B
Django/Jinja
29 lines
625 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% from "core/macros.jinja" import user_link_with_pict %}
|
|
|
|
{% block title %}
|
|
{% trans %}Search result{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h4>{% trans %}Users{% endtrans %}</h4>
|
|
<ul>
|
|
{% for i in result.users %}
|
|
{% if user.can_view(i) %}
|
|
<li>
|
|
{{ user_link_with_pict(i) }}
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
<h4>{% trans %}Clubs{% endtrans %}</h4>
|
|
<ul>
|
|
{% for i in result.clubs %}
|
|
<li>
|
|
<a href="{{ url("club:club_view", club_id=i.id) }}">{{ i }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|