samba: Add icon to app page

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2019-12-07 13:51:03 -05:00
parent dac6259928
commit 1df21bc090
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,8 @@ managed_packages = ['samba', 'acl']
name = _('Samba')
icon_filename = 'samba'
short_description = _('File Sharing')
description = [
@ -75,7 +77,7 @@ class SambaApp(app_module.App):
shortcut = frontpage.Shortcut(
'shortcut-samba', name, short_description=short_description,
icon='samba', description=description,
icon=icon_filename, description=description,
configure_url=reverse_lazy('samba:index'), clients=clients,
login_required=True, allowed_groups=[group[0]])
self.add(shortcut)

View File

@ -39,6 +39,7 @@ class SambaAppView(views.AppView):
diagnostics_module_name = 'samba'
app_id = 'samba'
template_name = 'samba.html'
icon_filename = samba.icon_filename
def get_context_data(self, *args, **kwargs):
"""Return template context data."""