diff --git a/.gitignore b/.gitignore index bfbe348..d334313 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ debug deploy venv static/promo.jpg +config.cfg *.pyc diff --git a/build.py b/build.py index 4f79d30..be26cb9 100644 --- a/build.py +++ b/build.py @@ -100,7 +100,7 @@ def _read_promodes_from_config(self, path): promo_dict['discount_code'] = cfg.get('promocode.discount', 'code').upper() promo_dict['gift_code'] = cfg.get('promocode.gift', 'code').upper() - promo_dict['gift_name'] = cfg.get('promocode.gift', 'name') + promo_dict['gift_name_and_condition'] = cfg.get('promocode.gift', 'name_and_condition') promo_dict['gift_duration'] = cfg.get('promocode.gift', 'duration') # TODO: Log this instead of printing to stdout. diff --git a/templates/promo.html b/templates/promo.html index f78af95..87be9e0 100644 --- a/templates/promo.html +++ b/templates/promo.html @@ -25,7 +25,7 @@

Промокод на скидку

Промокод на подарок

-

{{ gift_name }} к каждому заказу в интернет-магазине {{ ruquotes('Чистая Линия') }}.

+

{{ gift_name_and_condition }} в интернет-магазине {{ ruquotes('Чистая Линия') }}.

{{ copybutton(gift_code) }} Действует с {{ gift_duration }}.