Sith/core/templates/core/search.jinja

29 lines
625 B
Django/Jinja
Raw Normal View History

2016-08-19 00:53:44 +00:00
{% extends "core/base.jinja" %}
{% from "core/macros.jinja" import user_link_with_pict %}
{% block title %}
{% trans %}Search result{% endtrans %}
2016-08-19 00:53:44 +00:00
{% endblock %}
{% block content %}
<h4>{% trans %}Users{% endtrans %}</h4>
<ul>
2016-08-19 00:53:44 +00:00
{% for i in result.users %}
{% if user.can_view(i) %}
<li>
{{ user_link_with_pict(i) }}
</li>
{% endif %}
2016-08-19 00:53:44 +00:00
{% endfor %}
</ul>
<h4>{% trans %}Clubs{% endtrans %}</h4>
<ul>
2016-08-19 00:53:44 +00:00
{% for i in result.clubs %}
<li>
2016-08-19 00:53:44 +00:00
<a href="{{ url("club:club_view", club_id=i.id) }}">{{ i }}</a>
</li>
2016-08-19 00:53:44 +00:00
{% endfor %}
</ul>
2016-08-19 00:53:44 +00:00
{% endblock %}