mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
samba: Add icon to app page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
dac6259928
commit
1df21bc090
@ -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)
|
||||
|
||||
@ -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."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user