{% trans_default_domain 'advert' %}
<div class="row">
<div class="col text-right">
{% if filter_container.processor.filter('sort').formValue == 'url.param.sort.oldest'|trans({}, 'seo') %}
<a href="{{ path('advert_list', {'filterContainer': get_filter_url(filter_container, 'sort', null)}) }}" class="btn">
<i class="fas fa-sort-amount-down"></i> {{ 'sortBy.date'|trans }}
</a>
{% else %}
<a href="{{ path('advert_list', {'filterContainer': get_filter_url(filter_container, 'sort', 'url.param.sort.oldest'|trans({}, 'seo'))}) }}" class="btn">
<i class="fas fa-sort-amount-down-alt"></i> {{ 'sortBy.date'|trans }}
</a>
{% endif %}
{% if filter_container.processor.filter('sort').formValue == 'url.param.sort.cheap'|trans({}, 'seo') %}
<a href="{{ path('advert_list', {'filterContainer': get_filter_url(filter_container, 'sort', 'url.param.sort.expensive'|trans({}, 'seo'))}) }}" class="btn">
<i class="fas fa-sort-numeric-down"></i> {{ 'sortBy.price'|trans }}
</a>
{% else %}
<a href="{{ path('advert_list', {'filterContainer': get_filter_url(filter_container, 'sort', 'url.param.sort.cheap'|trans({}, 'seo'))}) }}" class="btn">
<i class="fas fa-sort-numeric-down-alt"></i> {{ 'sortBy.price'|trans }}
</a>
{% endif %}
</div>
</div>