Skip to content

Commit

Permalink
Link feature release links to corresponding pages in guide
Browse files Browse the repository at this point in the history
Wagtail Guide will automatically redirect to `latest` if the specific release is not found
  • Loading branch information
Tijani-Dia authored and lb- committed Jan 24, 2024
1 parent 7f6a262 commit 65e693c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Changelog
* Add support for `caption` on admin UI Table component (Aman Pandey)
* Add API support for a redirects (contrib) endpoint (Rohit Sharma, Jaap Roes, Andreas Donig)
* Add the default ability for all `SnippetViewSet` & `ModelViewSet` to support being copied (Shlomo Markowitz)
* Support dynamic Wagtail guide links in the admin that are based on the running version of Wagtail (Tidiane Dia)
* Fix: Update system check for overwriting storage backends to recognise the `STORAGES` setting introduced in Django 4.2 (phijma-leukeleu)
* Fix: Prevent password change form from raising a validation error when browser autocomplete fills in the "Old password" field (Chiemezuo Akujobi)
* Fix: Ensure that the legacy dropdown options, when closed, do not get accidentally clicked by other interactions wide viewports (CheesyPhoenix, Christer Jensen)
Expand Down
1 change: 1 addition & 0 deletions docs/releases/6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ This feature was implemented by Nick Lee, Thibaud Colas, and Sage Abdullah.
* Add support for `caption` on admin UI Table component (Aman Pandey)
* Add API support for a [redirects (contrib)](redirects_api_endpoint) endpoint (Rohit Sharma, Jaap Roes, Andreas Donig)
* Add the default ability for all `SnippetViewSet` & `ModelViewSet` to support [being copied](modelviewset_copy), this can be disabled by `copy_view_enabled = False` (Shlomo Markowitz)
* Support dynamic Wagtail guide links in the admin that are based on the running version of Wagtail (Tidiane Dia)


### Bug fixes
Expand Down
6 changes: 6 additions & 0 deletions wagtail/templatetags/wagtailcore_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,17 @@ def wagtail_release_notes_path():

@register.simple_tag
def wagtail_feature_release_whats_new_link():
major, minor, patch, release, num = VERSION
if release == "final":
return f"https://guide.wagtail.org/en-{major}.{minor}.x/releases/new-in-wagtail-{major}-{minor}/"
return "https://guide.wagtail.org/en-latest/releases/latest/"


@register.simple_tag
def wagtail_feature_release_editor_guide_link():
major, minor, patch, release, num = VERSION
if release == "final":
return f"https://guide.wagtail.org/en-{major}.{minor}.x/"
return "https://guide.wagtail.org/"


Expand Down

0 comments on commit 65e693c

Please sign in to comment.