Skip to content

Commit

Permalink
Add old Plone 5 classes to the portlet template
Browse files Browse the repository at this point in the history
Add Plone 5 classes portletHeader and portletContent to the portlet template to
improve compatibility with Plone 5 styles.
This can help when migrating styles from Plone 5 to Plone 6.

Note: This targets only portlets yet. There is probably much more to do to
improve the Plone 5 to 6 upgrade experience.
  • Loading branch information
thet committed Nov 26, 2024
1 parent 206978a commit ad07640
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions news/416.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Add old Plone 5 classes to the portlet template

Add Plone 5 classes portletHeader and portletContent to the portlet template to
improve compatibility with Plone 5 styles.
This can help when migrating styles from Plone 5 to Plone 6.

Note: This targets only portlets yet. There is probably much more to do to
improve the Plone 5 to 6 upgrade experience.
[thet]
4 changes: 2 additions & 2 deletions plone/app/event/portlets/portlet_calendar.pt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"
>

<div class="card-header text-center">
<div class="card-header portletHeader text-center">
<a class="calendarPrevious pat-contentloader"
href="#"
rel="nofollow"
Expand Down Expand Up @@ -64,7 +64,7 @@
>&raquo;</a>
</div>

<div class="card-body table-responsive">
<div class="card-body portletContent table-responsive">
<table class="table table-sm table-borderless mb-0"
summary="Calendar"
i18n:attributes="summary summary_calendar"
Expand Down

0 comments on commit ad07640

Please sign in to comment.