t92: подправил ссылки для переводчиков

remotes/origin/t79_search_places_modal
Slava Kyrachevsky 9 years ago
parent 886233168f
commit e70ec89296
  1. 5
      templates/client/includes/exposition/exposition_services.html
  2. 3
      templates/client/includes/translators_aside.html

@ -5,7 +5,12 @@
{% with services=object.get_services_detail %} {% with services=object.get_services_detail %}
{% for service in services %} {% for service in services %}
<li> <li>
{# временно создаём условие, т.к. для переводчиков подключаем партнёров #}
{% if service.name == 'Переводчик' %}
<a href="https://www.interpreters.travel/ru/new_partner_search?partner_id=44&search[city_name]={{ object.place.city }}&search_date={{ object.data_begin|date:'Y-m-d' }}" target="_blank">{{ service.name }}</a>
{% else %}
<a href="{{ exposition.get_permanent_url }}service/{{ service.url }}/">{{ service.name }}</a> <a href="{{ exposition.get_permanent_url }}service/{{ service.url }}/">{{ service.name }}</a>
{% endif %}
</li> </li>
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}

@ -3,7 +3,8 @@
<header>{% trans 'Переводчики' %}</header> <header>{% trans 'Переводчики' %}</header>
<nav> <nav>
<ul> <ul>
<li><a href="/translators/country/">{% trans 'По странам' %}</a></li> {# временно комментируем, так как подключаем партнёров #}
{# <li><a href="/translators/country/">{% trans 'По странам' %}</a></li>#}
<li><a href="/translators/city/">{% trans 'По городам' %}</a></li> <li><a href="/translators/city/">{% trans 'По городам' %}</a></li>
<li><a href="/translators/city/moscow/">{% trans 'Переводчики в Москве' %}</a></li> <li><a href="/translators/city/moscow/">{% trans 'Переводчики в Москве' %}</a></li>
<li><a href="/translators/country/germany/">{% trans 'Переводчики в Германии' %}</a></li> <li><a href="/translators/country/germany/">{% trans 'Переводчики в Германии' %}</a></li>

Loading…
Cancel
Save