{% block tag_table %}
	<table id="all_tags_table">
    <tr><th>id</th>
        <th>label</th>
        {% comment %}<th>original_label</th>{% endcomment %}
        <th class="text_centered">Lien W</th>
        <th>Catégorie</th>
        <th class="large_25 text_centered">Supprimer<br/>le lien W</th>
        <th>Alias</th></tr>
    {% for tag in tags %}
    <tr class="imageline {% cycle 'hdabooddline' 'hdaboevenline' %}">
        <td class="reset_wp_info">{{tag.id}}</td>
        <td class="{{tag.url_status_text}} wikipediatag" id="{{tag.id}}" >{{tag.label}}</td>
        {% comment %}<td>{{tag.original_label}}</td>{% endcomment %}
        <td class="text_centered">
            {% if tag.wikipedia_url and tag.wikipedia_url != ""  %}
            <a href="{{tag.wikipedia_url}}" target="_blank"><img src="{{STATIC_URL}}hdabo/img/arrow_right.png" ></a>
            {% else %}
            <a href="http://fr.wikipedia.org/w/index.php?search={{tag.label}}" target="_blank"><img src="{{STATIC_URL}}hdabo/img/wikipedia_search.png" ></a>
            {% endif %}</td>
        <td class="tag_category" id="{{tag.id}}">{% if tag.category %}{{ tag.category }}{% endif %}</td>
        <td class="text_centered"><img src="{{STATIC_URL}}hdabo/img/red_cross.png" class="remove_wp_link" id="{{tag.id}}" alt="{{tag.label}}" /></td>
        <td class="tag_alias" id="{{tag.id}}" >{% if tag.alias %}{{tag.alias}}{% endif %}</td></tr>
    {% endfor %}
    </table>
{% endblock %}
