parent
9b7037c34d
commit
bf88765564
10 changed files with 196 additions and 200 deletions
@ -1,5 +1,3 @@ |
||||
{% with tags=obj.tags %} |
||||
{% for tag in tags %} |
||||
<a href="{{ obj.catalog }}tag/{{ tag.url }}">{{ tag.name }}</a>{% if forloop.counter != tags|length %},{% endif %} |
||||
{% for tag in obj.tags.all %} |
||||
<a href="{{ obj.catalog }}tag/{{ tag.url }}">{{ tag.name }}</a>{% if not forloop.last %},{% endif %} |
||||
{% endfor %} |
||||
{% endwith %} |
||||
@ -1,72 +0,0 @@ |
||||
{% load thumbnail %} |
||||
{% load i18n %} |
||||
{% load template_filters %} |
||||
|
||||
|
||||
|
||||
<div class="mcl"> |
||||
|
||||
<div id="mp-recent-expo" class="recent-expo"> |
||||
<ul class="cycle-slideshow" |
||||
data-cycle-fx="scrollHorz" |
||||
data-cycle-timeout="4000" |
||||
data-cycle-prev=".swiper-button-prev" |
||||
data-cycle-next=".swiper-button-next" |
||||
data-cycle-pause-on-hover="true" |
||||
data-cycle-slides="> li" |
||||
data-cycle-log="false"> |
||||
|
||||
{% for event in events %} |
||||
<li> |
||||
<div class="re-pict pict-over" > |
||||
{% if event.logo %} |
||||
<a href="{{ event.get_main_link }}"> |
||||
{# <img src="{{ event.logo.url }}"> #} |
||||
|
||||
{% thumbnail event.get_preview "220x220" as im %} |
||||
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"> |
||||
{% endthumbnail %} |
||||
|
||||
</a> |
||||
{% endif %} |
||||
</div> |
||||
<div class="re-body"> |
||||
<div class="re-info"> |
||||
<a href="{{ event.get_main_link }}"> |
||||
<div class="re-title">{{ event.name|safe }}</div> |
||||
<div class="re-date"> |
||||
{% include 'client/includes/index/main_date_block.html' with obj=event %} |
||||
</div> |
||||
<div class="re-descr" title="{{ event.main_title|safe }}">{{ event.main_title|safe }}</div> |
||||
</a> |
||||
</div> |
||||
<footer> |
||||
<div class="re-buttons"> |
||||
<a class="button blue icon-calendar {% if event|in_calendar:request.user %}removecalendar {% else %}addcalendar {% endif %}" href="{{ event.get_calendar_url }}">{% if event|in_calendar:request.user %}{% trans 'Убрать из календаря' %}{% else %}{% trans 'добавить в календарь' %}{% endif %}</a> |
||||
<div class="main-page {% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> |
||||
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="{{ event.get_note_url }}">{% trans 'заметка' %}</a> |
||||
<div class="note-overlay"> |
||||
<form action=""> |
||||
<textarea name="note_text" class="note-text"> {{ note }}</textarea> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="re-tags"> |
||||
{% with tags=event.tags %} |
||||
{% for tag in tags %} |
||||
<a href="{{ event.get_catalog_url }}tag/{{ tag.url }}">{{ tag }}</a>{% if forloop.counter < tags|length %},{% endif %} |
||||
{% endfor %} |
||||
{% endwith %} |
||||
</div> |
||||
</footer> |
||||
</div> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
<div class="re-controls"> |
||||
<a class="prev swiper-button-prev" href="javascript:void(0)"><</a> |
||||
<a class="next swiper-button-next" href="javascript:void(0)">></a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
Loading…
Reference in new issue