mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Better column headings
This commit is contained in:
parent
ce3a3daffa
commit
62f05024d2
@ -7,10 +7,10 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="title">
|
<th class="title">
|
||||||
{% trans 'Item' %}
|
{% trans 'Name' %}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{% trans 'Object type' %}
|
{% trans 'Type' %}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{% trans 'Action' %}
|
{% trans 'Action' %}
|
||||||
|
@ -43,12 +43,12 @@ class SiteHistoryReportFilterSet(WagtailFilterSet):
|
|||||||
widget=forms.CheckboxInput,
|
widget=forms.CheckboxInput,
|
||||||
)
|
)
|
||||||
timestamp = django_filters.DateFromToRangeFilter(label=_('Date'), widget=DateRangePickerWidget)
|
timestamp = django_filters.DateFromToRangeFilter(label=_('Date'), widget=DateRangePickerWidget)
|
||||||
label = django_filters.CharFilter(label=_('Title'), lookup_expr='icontains')
|
label = django_filters.CharFilter(label=_('Name'), lookup_expr='icontains')
|
||||||
user = django_filters.ModelChoiceFilter(
|
user = django_filters.ModelChoiceFilter(
|
||||||
field_name='user', queryset=lambda request: get_users_for_filter()
|
field_name='user', queryset=lambda request: get_users_for_filter()
|
||||||
)
|
)
|
||||||
object_type = ContentTypeFilter(
|
object_type = ContentTypeFilter(
|
||||||
label=_('Object type'),
|
label=_('Type'),
|
||||||
method='filter_object_type', queryset=lambda request: get_content_types_for_filter()
|
method='filter_object_type', queryset=lambda request: get_content_types_for_filter()
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ class LogEntriesView(ReportView):
|
|||||||
|
|
||||||
export_headings = {
|
export_headings = {
|
||||||
"object_id": _("ID"),
|
"object_id": _("ID"),
|
||||||
"title": _("Title"),
|
"title": _("Name"),
|
||||||
"object_verbose_name": _("Type"),
|
"object_verbose_name": _("Type"),
|
||||||
"action": _("Action type"),
|
"action": _("Action type"),
|
||||||
"timestamp": _("Date/Time")
|
"timestamp": _("Date/Time")
|
||||||
|
Loading…
Reference in New Issue
Block a user