{% 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 'Liste des termes' %}{% endblock %}

{% block breadcrumbs %}<a href="{% url 'front_termlist' %}">{% trans 'Liste des termes' %}</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 "Auteurs" %}</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 "Domaines" %}</a></h2>
                </li>
                <li class="term-tab{% if thesaurus == 'EPOQ' %} active{% endif %}">
                    <h2><a href="{% url 'front_termlist' %}?thesaurus=EPOQ">{% trans "Epoques" %}</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 %}
