kopia lustrzana https://github.com/wagtail/wagtail
Ensure that page ID and classname are correctly set on the td element
rodzic
61f3cfed38
commit
dc747d7106
|
@ -1,4 +1,4 @@
|
|||
{% load l10n %}
|
||||
<td id="page_{{ page.pk|unlocalize }}_title" class="title" data-listing-page-title>
|
||||
<td id="page_{{ instance.pk|unlocalize }}_title" {% if column.classname %}class="{{ column.classname }}"{% endif %} data-listing-page-title>
|
||||
{% include "wagtailadmin/pages/listing/_page_title_explore.html" with page=instance show_locale_labels=show_locale_labels %}
|
||||
</td>
|
||||
|
|
|
@ -6,6 +6,7 @@ from wagtail.admin.ui.tables import BaseColumn, BulkActionsCheckboxColumn, Colum
|
|||
|
||||
class PageTitleColumn(BaseColumn):
|
||||
cell_template_name = "wagtailadmin/pages/listing/_page_title_cell.html"
|
||||
classname = "title"
|
||||
|
||||
def get_cell_context_data(self, instance, parent_context):
|
||||
context = super().get_cell_context_data(instance, parent_context)
|
||||
|
|
Ładowanie…
Reference in New Issue