Add empty result text to the user events views. Add icon to the acls create link.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-26 06:57:10 -04:00
parent 69b80aff1d
commit 600fa16d8c
4 changed files with 16 additions and 5 deletions

View File

@@ -20,7 +20,9 @@ from .classes import EventType, ModelEventType
from .forms import (
EventTypeUserRelationshipFormSet, ObjectEventTypeUserRelationshipFormSet
)
from .icons import icon_events_list, icon_user_notifications_list
from .icons import (
icon_events_list, icon_events_user_list, icon_user_notifications_list
)
from .links import link_event_types_subscriptions_list
from .models import StoredEventType
from .permissions import permission_events_view
@@ -277,6 +279,12 @@ class UserEventListView(SingleObjectListView):
},
),
'hide_object': True,
'no_results_icon': icon_events_user_list,
'no_results_text': _(
'Events are actions that have been performed to this '
'user account or by this user account.'
),
'no_results_title': _('There are no events for this user'),
'object': self.get_user(),
'title': _(
'Events for user: %s'