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

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

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

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

{% block breadcrumbs %}<a href="{% url 'front_termlist' %}">{% trans 'Index' %}</a>{% endblock %}

{% block main %}
            
            <ul class="term-cloud">
                {% for word in words %}
                    <li style="font-size: {{word.font_size}}em">
                        <a href="{% url 'front_search' %}?dbpedia_uri={{word.uri|urlencode}}" data-dbpedia-uri="{{word.uri}}">{{word.label}}</a>
                    </li>
                {% endfor %}
            </ul>
            
            <ul class="term-tabs">
                <li class="term-tab{% if thesaurus == 'AUTR' %} active{% endif %}">
                    <h2><a href="{% url 'front_termlist' %}?thesaurus=AUTR">{% trans "Artistes" %}</a></h2>
                </li>
                <li class="term-tab{% if thesaurus == 'REPR' %} active{% endif %}">
                    <h2><a href="{% url 'front_termlist' %}?thesaurus=REPR">{% trans "Sujets représentés" %}</a></h2>
                </li>
                <li class="term-tab{% if thesaurus == 'DOMN' %} active{% endif %}">
                    <h2><a href="{% url 'front_termlist' %}?thesaurus=DOMN">{% trans "Catégories" %}</a></h2>
                </li>
                <li class="term-tab{% if thesaurus == 'EPOQ' %} active{% endif %}">
                    <h2><a href="{% url 'front_termlist' %}?thesaurus=EPOQ">{% trans "Époques" %}</a></h2>
                </li>
            </ul>
            
            <div class="term-contents">
    {% include "jocondelab/partial/termlist_contents.html" %}
            </div>
            
            <div class="loading-please-wait"><img src="{{STATIC_URL}}jocondelab/img/loader.gif" /></div>
            <script>$(function() { dbpediaBox.bind(".term h3");});</script>
            
{% endblock %}
