{% extends "jocondelab/front_base.html" %}
{% load i18n %}
{% load l10n %}

{% block js_declaration %}
    {{block.super}}
    <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-search.js"></script>
{% endblock %}

{% block css_declaration %}
    {{block.super}}
    <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-search.css"></script>
{% endblock %}

{% block title %}JocondeLab &raquo; {% trans 'Multilingual search' %}{% endblock %}

{% block breadcrumbs %}<a href="{% url 'front_search' %}">{% trans 'Multilingual search' %}</a>{% endblock %}

{% block header_search %}{% endblock %}

{% block main %}

            <form class="big-search-form">
                <input class="big-search-input" type="search" name="q" value="{{queryterms}}" />
            </form>
            
            <ul class="term-cloud">
                {% for word in words %}
                    <li style="font-size: {{word.font_size|unlocalize}}em">
                        <a href="{% url 'front_search' %}?q={{word.label|urlencode}}" data-dbpedia-uri="{{word.uri}}">{{word.label}}</a>
                    </li>
                {% endfor %}
            </ul>
            
            <h2 class="resultcount"><b>{{rescount}}</b> {% if queryterms %}{% trans 'results for:' %} <b>{{queryterms}}</b>{% else %}{% trans 'results' %}{% endif %}</h2>
            
            <ul class="notice-list clearfix">
                {% include 'jocondelab/partial/notice_list.html' %}
            </ul>
{% endblock %}
