Skip to content

Commit

Permalink
TI-4669 tests with notes
Browse files Browse the repository at this point in the history
Wanted to at least temporarily document some options
  • Loading branch information
easherma-truth committed May 24, 2024
1 parent 7625001 commit dc46d3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/wagtail_personalisation/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,12 @@ def page_listing_more_buttons(page, user, is_parent=False, next_url=None, *args)
yield Button(
"%s variant" % (vm.segment.name),
reverse("wagtailadmin_pages:edit", args=[vm.variant_id]),
attrs={"title": _("Edit this variant")},
classname=("icon", "icon-edit"),
attrs={
"title": _("Edit this variant"),
"class": "icon icon-edit" # does work but not needed
},
icon_name='edit', # seems to be the newer wagtail convention
classname="icon icon-edit", # dosen't seem to work but should
priority=0,
)

Expand Down

0 comments on commit dc46d3f

Please sign in to comment.