parent
161039d4e0
commit
fa092225d9
7 changed files with 220 additions and 219 deletions
@ -1,56 +1,53 @@ |
||||
{% load static %} |
||||
{% load i18n %} |
||||
|
||||
|
||||
<ul class="cat-list cl-places"> |
||||
{% for object in object_list %} |
||||
<li class="cl-item" {% if forloop.counter == 1 %}style="border:1px solid #ff6600;"{% else %}{% endif %}> |
||||
<div class="cl-item-wrap clearfix"> |
||||
<a href="{{ object.get_permanent_url }}"> |
||||
<div class="cli-pict"> |
||||
{% with obj=object %} |
||||
{% include 'client/includes/show_logo.html' %} |
||||
{% endwith %} |
||||
{% with objects=object_list %} |
||||
<ul class="cat-list cl-places"> |
||||
{% for object in object_list %} |
||||
<li class="cl-item" {% if forloop.counter == 1 %}style="border:1px solid #ff6600;"{% else %}{% endif %}> |
||||
<div class="cl-item-wrap clearfix"> |
||||
<a href="{{ object.get_permanent_url }}"> |
||||
<div class="cli-pict"> |
||||
{% with obj=object %} |
||||
{% include 'client/includes/show_logo.html' %} |
||||
{% endwith %} |
||||
</div> |
||||
</a> |
||||
<div class="cli-info"> |
||||
<div class="cli-top clearfix"> |
||||
|
||||
<header> |
||||
<div class="cli-title"><a href="{{ object.get_permanent_url }}">{{ object.name|safe }}</a></div> |
||||
<!--<div class="cli-rate">{{ object.rating }}</div>--> |
||||
</header> |
||||
|
||||
<div class="cli-descr">{{ object.get_type }}</div> |
||||
</div> |
||||
|
||||
<div class="cli-bot clearfix"> |
||||
{% if object.total_area %} |
||||
<div class="cli-dim">{{ object.total_area }} м2</div> |
||||
{% endif %} |
||||
<div class="cli-place"><a href="/places/country/{{ object.country.url }}/">{{ object.country }}</a>, <a href="/places/city/{{ object.city.url }}/">{{ object.city }}</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
<div class="cli-info"> |
||||
<div class="cli-top clearfix"> |
||||
|
||||
<header> |
||||
<div class="cli-title"><a href="{{ object.get_permanent_url }}">{{ object.name|safe }}</a></div> |
||||
<!--<div class="cli-rate">{{ object.rating }}</div>--> |
||||
</header> |
||||
|
||||
<div class="cli-descr">{{ object.get_type }}</div> |
||||
</div> |
||||
|
||||
<div class="cli-bot clearfix"> |
||||
{% if object.total_area %} |
||||
<div class="cli-dim">{{ object.total_area }} м2</div> |
||||
{% endif %} |
||||
<div class="cli-place"><a href="/places/country/{{ object.country.url }}/">{{ object.country }}</a>, <a href="/places/city/{{ object.city.url }}/">{{ object.city }}</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="cli-buttons clearfix"> |
||||
<div class="cli-m-buttons"> |
||||
<a class="button icon-info" href="{{ object.get_permanent_url }}">{% trans 'описание' %}</a> |
||||
{% if object.get_events_number %} |
||||
<a class="button green icon-list" href="#">{% trans 'события' %} ({{ object.get_events_number }})</a> |
||||
{% endif %} |
||||
{% if object.photogallery %} |
||||
<a class="button blue icon-photo" href="{{ object.get_permanent_url }}photo/">{% trans 'фото' %}</a> |
||||
{% endif %} |
||||
</div> |
||||
<div class="cli-s-buttons"> |
||||
|
||||
<a class="button blue2 lc" target="_blank" href="http://www.booking.com/searchresults.html?aid={{ book_aid }}&city={{ object.city.id }}">{% trans 'Найти отели поблизости' %}</a> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
|
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
<div class="cli-buttons clearfix"> |
||||
<div class="cli-m-buttons"> |
||||
<a class="button icon-info" href="{{ object.get_permanent_url }}">{% trans 'описание' %}</a> |
||||
{% if object.get_events_number %} |
||||
<a class="button green icon-list" href="#">{% trans 'события' %} ({{ object.get_events_number }})</a> |
||||
{% endif %} |
||||
{% if object.photogallery %} |
||||
<a class="button blue icon-photo" href="{{ object.get_permanent_url }}photo/">{% trans 'фото' %}</a> |
||||
{% endif %} |
||||
</div> |
||||
<div class="cli-s-buttons"> |
||||
<a class="button blue2 lc" target="_blank" href="http://www.booking.com/searchresults.html?aid={{ book_aid }}&city={{ object.city.id }}">{% trans 'Найти отели поблизости' %}</a> |
||||
</div> |
||||
</div> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
{% endwith %} |
||||
Loading…
Reference in new issue