{% extends "biglib_base.html" %} {% block title %} {{ block.super }}- Busca {% endblock %} {% block breadcrumb %} {% ifequal searchfor 'book' %} {{ block.super }} > Buscar livros {% else %} {{ block.super }} > Buscar pessoas {% endifequal %} {% endblock %} {% block content %} {% ifequal searchfor 'book' %}
Busca de livros
{% else %}
Busca de amigos
{% endifequal %}
{% if query %} {% for result in page.object_list %} {% ifequal searchfor 'people' %}
{{ result.object.user.username }}

Nome completo: {{ result.object.user.get_full_name }}
{% if result.object.ocupation %} Ocupação: {{ result.object.ocupation }}
{% endif %} Livros disponíveis: {{ result.object.get_how_many_my_books }}
{% if result.object in user.get_profile.get_friends or result.object.user == user %}

{% else %} + Amigo {% endif %}

{% endifequal %} {% ifequal searchfor 'book' %}
{{ result.object.book.title }}

Autor(es):
    {% for author in result.object.book.authors.all %}
  • {{ author.name }}
  • {% endfor %}

Editora: {{ result.object.book.publisher }}
de {{ result.object.owner.user }}

{% endifequal %} {% empty %}

Nenhum resultado encontrado.

{% endfor %} {% if page.has_previous or page.has_next %}
{% ifequal searchfor 'book' %} {% if page.has_previous %}{% endif %}« Anterior{% if page.has_previous %}{% endif %} | {% if page.has_next %}{% endif %}Próxima »{% if page.has_next %}{% endif %} {% else %} {% if page.has_previous %}{% endif %}« Anterior{% if page.has_previous %}{% endif %} | {% if page.has_next %}{% endif %}Próxima »{% if page.has_next %}{% endif %} {% endifequal %}
{% endif %} {% else %} {# Show some example queries to run, maybe query syntax, something else? #} {% endif %}
{% endblock %}