Add option to add robots=noindex meta tag

This commit is contained in:
Raphael Michel
2018-10-03 11:15:59 +02:00
parent d99517c8d1
commit d798da33ef
3 changed files with 9 additions and 0 deletions

View File

@@ -919,6 +919,9 @@ class DisplaySettingsForm(SettingsForm):
('name_descending', _('Name (descending)')),
], # When adding a new ordering, remember to also define it in the event model
)
meta_noindex = forms.BooleanField(
label=_('Ask search engines not to index the ticket shop')
)
def __init__(self, *args, **kwargs):
event = kwargs['obj']

View File

@@ -11,6 +11,7 @@
{% bootstrap_field form.logo_image layout="control" %}
{% bootstrap_field form.frontpage_text layout="control" %}
{% bootstrap_field form.show_variations_expanded layout="control" %}
{% bootstrap_field form.meta_noindex layout="control" %}
{% if form.frontpage_subevent_ordering %}
{% bootstrap_field form.frontpage_subevent_ordering layout="control" %}
{% endif %}