Skip to content

Commit

Permalink
Forgotten rename (variation->variant)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvantellingen committed Jun 2, 2017
1 parent 281086a commit 6e56d8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wagtail_personalisation/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def serve_variant(page, request, serve_args, serve_kwargs):
:type page: wagtail.wagtailcore.models.Page
:param request: The http request
:type request: django.http.HttpRequest
:returns: A variation if one is available for the visitor's segment,
:returns: A variant if one is available for the visitor's segment,
otherwise the original page
:rtype: wagtail.wagtailcore.models.Page
Expand Down Expand Up @@ -127,14 +127,14 @@ def page_listing_more_buttons(page, page_perms, is_parent=False):
metadata = page.personalisation_metadata

for vm in metadata.variants_metadata:
yield Button('%s variation' % (vm.segment.name),
yield Button('%s variant' % (vm.segment.name),
reverse('wagtailadmin_pages:edit', args=[vm.variant_id]),
attrs={"title": _('Edit this variant')},
classes=("icon", "icon-fa-pencil"),
priority=0)

for segment in metadata.get_unused_segments():
yield Button('%s variation' % (segment.name),
yield Button('%s variant' % (segment.name),
reverse('segment:copy_page', args=[page.pk, segment.pk]),
attrs={"title": _('Create this variant')},
classes=("icon", "icon-fa-plus"),
Expand Down

0 comments on commit 6e56d8c

Please sign in to comment.