remotes/origin/1203
Kotiuk Nazarii 11 years ago
parent 956ab4d791
commit 238e61150a
  1. 5
      settings/templatetags/template_filters.py
  2. 1
      templates/client/exposition/exposition_list.html

@ -156,6 +156,11 @@ def timetable_by_day(qs, day):
def random_social(value):
return bool(random.getrandbits(1))
@register.filter
def fourth(value):
# return almost in 75% cases True in 25% False
return bool(random.randrange(0,4))
@register.filter
def is_current_page(request, param):
return request.path == param

@ -24,6 +24,7 @@
{% block page_title %}
<div class="page-title">
<h1>{% if meta %}{{ meta.h1 }}{% else %}{% trans 'Выставки' %}{% endif %}</h1>
</div>
{% include 'includes/exposition/catalog_filter_period.html' %}

Loading…
Cancel
Save