{% extends "VisualMManagementBundle:AdminList:Column/PlainValueColumn/listItem.html.twig" %}

{% block container %}
    {% if column.getRoute(item) is not empty %}
        {% if column.getParameters(item)['#'] is defined %}
            {% set link_hash = '#' ~ column.getParameters(item)['#'] %}
        {% endif %}
        {% set link_url = path(column.getRoute(item), column.getParameters(item)|merge({('#'): null})) ~ link_hash|default('') %}
        <a href="{{link_url}}">
            {% if value is not empty %}
                {{ value }}
            {% else %}
                -
            {% endif %}
        </a>
    {% else %}
        {% if value is not empty %}
            {{ value }}
        {% else %}
            -
        {% endif %}
    {% endif %}
{% endblock %}
