From 797a36c07b6e8cdc7eebe5fc6b49e4868e6a3ff1 Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Wed, 27 Jul 2016 11:00:02 +0300 Subject: [PATCH] =?UTF-8?q?1491:=20=D0=93=D0=BE=D1=80=D0=B8=D1=82=20-=20?= =?UTF-8?q?=D0=9D=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B2=D0=B5=D1=81=D1=82=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=20=D0=BA=D1=80=D0=B0=D1=82=D0=BA=D0=B8=D0=BC=20=D0=BE=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings/templatetags/template_filters.py | 3 +++ templates/client/includes/conference/conference_object.html | 2 +- templates/client/includes/conference/conference_paid.html | 2 +- templates/client/includes/exposition/expo_paid.html | 2 +- templates/client/includes/exposition/exposition_object.html | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/settings/templatetags/template_filters.py b/settings/templatetags/template_filters.py index e1c69e4b..3bc70928 100644 --- a/settings/templatetags/template_filters.py +++ b/settings/templatetags/template_filters.py @@ -338,3 +338,6 @@ def get_pages(objects, number): x, y = divmod(len(objects), int(number)) return xrange(x if y == 0 else x + 1) +@register.filter +def lowfirst(value): + return value[:1].lower() + value[1:] if value else '' diff --git a/templates/client/includes/conference/conference_object.html b/templates/client/includes/conference/conference_object.html index ba37d0bb..d0d70c55 100644 --- a/templates/client/includes/conference/conference_object.html +++ b/templates/client/includes/conference/conference_object.html @@ -36,7 +36,7 @@

{% if event.main_title %} - {{ event.main_title|safe }} {{ event.name|safe }} + {{ event.name|safe }} - {{ event.main_title|safe|lowfirst }} {% else %} {{ event.name|safe }} {% endif %} diff --git a/templates/client/includes/conference/conference_paid.html b/templates/client/includes/conference/conference_paid.html index bd972e3e..410b11a7 100644 --- a/templates/client/includes/conference/conference_paid.html +++ b/templates/client/includes/conference/conference_paid.html @@ -44,7 +44,7 @@

{% if event.main_title %} - {{ event.main_title|safe }} {{ event.name|safe }} + {{ event.name|safe }} - {{ event.main_title|safe|lowfirst }} {% else %} {{ event.name|safe }} {% endif %} diff --git a/templates/client/includes/exposition/expo_paid.html b/templates/client/includes/exposition/expo_paid.html index 279e7eb3..bdfde887 100644 --- a/templates/client/includes/exposition/expo_paid.html +++ b/templates/client/includes/exposition/expo_paid.html @@ -42,7 +42,7 @@

{% if exposition.main_title %} - {{ exposition.main_title|safe }} {{ exposition.name|safe }} + {{ exposition.name|safe }} - {{ exposition.main_title|safe|lowfirst }} {% else %} {{ exposition.name|safe }} {% endif %} diff --git a/templates/client/includes/exposition/exposition_object.html b/templates/client/includes/exposition/exposition_object.html index 2771abfe..b8b38cef 100644 --- a/templates/client/includes/exposition/exposition_object.html +++ b/templates/client/includes/exposition/exposition_object.html @@ -39,7 +39,7 @@

{% if exposition.main_title %} - {{ exposition.main_title|safe }} {{ exposition.name|safe }} + {{ exposition.name|safe }} - {{ exposition.main_title|safe|lowfirst }} {% else %} {{ exposition.name|safe }} {% endif %}