<div class="profile-values-block profile-values-block--{{ type }} d-flex{{ template == 'saloon' ? ' profile-values-block--saloon' : '' }}">
{%- if haveMetro -%}
<div class="profile-values d-flex">
<span class="profile-values-title mr-2">Метро</span>
<div class="profile-values-list d-flex-c">
{%- for station in profile.stationsSortedByPrimary|slice(0,3) -%}
<a class="profile-values-link d-flex-c link" href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}" target="_blank" title="{{ station.name }}">
{%- include 'components/metro/icon_generate.partial.twig' with {data: station.id|station_lines} -%}
{{- station.name -}}
</a>
{%- endfor -%}
</div>
</div>
{%- endif -%}
{%- if template is defined and template == 'profile' -%}
<div class="profile-values d-flex">
<span class="profile-values-title mr-2">Город</span>
<div class="profile-values-list d-flex-c">
<span class="profile-values-link d-flex-c" title="{{ profile.city.name|trans }}">
{{- profile.city.name|trans -}}
</span>
</div>
</div>
{%- endif -%}
{%- if haveMetro and template == 'profile' -%}
<div class="profile-values d-flex">
<span class="profile-values-title mr-2">Район</span>
<div class="profile-values-list d-flex-c">
{%- for station in profile.stationsSortedByPrimary -%}
{%- set district = station.district -%}
{%- if district -%}
{%- if loop.first -%}
{%- set county = district.county -%}
{%- if county -%}
<span>
<a class="profile-values-link link" href="{{ path('profile_list.list_by_county', {'city': county.city.uriIdentity, 'county': county.uriIdentity}) }}" target="_blank">{{ county.name|trans }}</a>,
<a class="profile-values-link link" href="{{ path('profile_list.list_by_district', {'city': county.city.uriIdentity, 'district': district.uriIdentity}) }}" target="_blank">{{ district.name|trans }}</a>
</span>
{%- else -%}
Не указан
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
</div>
</div>
{%- endif -%}
{%- if template is defined and template == 'saloon' -%}
<div class="profile-values d-flex">
<span class="profile-values-title mr-2">Адрес</span>
<div class="profile-values-list d-flex-c">
{{- profile.address -}}
</div>
</div>
{%- endif -%}
</div>
{%- if type == 'mobile' -%}
<div class="profile-show-map">
<button class="profile-show-map-btn btn btn-grey btn-fluid" type="button" id="show-map-btn">
<svg class=" btn-icon" width="25" height="24" fill="none"><path fill-rule="evenodd" d="M4.674 8.826C4.674 4.512 8.186 1 12.499 1c4.314 0 7.826 3.512 7.826 7.826 0 5.448-6.808 13.05-7.102 13.372L12.5 23l-.723-.802c-.294-.323-7.102-7.924-7.102-13.372Zm1.956 0c0 3.463 3.737 8.667 5.87 11.22 1.711-2.064 5.869-7.474 5.869-11.22a5.874 5.874 0 0 0-5.87-5.87 5.874 5.874 0 0 0-5.869 5.87Zm5.87 0c.811 0 1.467-.656 1.467-1.468 0-.812-.656-1.467-1.468-1.467-.811 0-1.467.665-1.467 1.467 0 .812.656 1.468 1.467 1.468ZM9.564 11.27c0-.978 1.956-1.467 2.934-1.467.979 0 2.935.489 2.935 1.467v.118a3.88 3.88 0 0 1-2.934 1.35 3.88 3.88 0 0 1-2.935-1.35v-.118Z" clip-rule="evenodd"/></svg>
<span class="btn-text">Показать на карте</span>
</button>
<div class="profile-show-map-container skeleton" id="profile-map-mobile"></div>
</div>
{%- endif -%}