mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Fix front page label names
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
33f3e4568c
commit
667282bae9
@ -38,7 +38,8 @@ def add_shortcut(shortcut_id, name, short_description="", login_required=False,
|
||||
if not icon:
|
||||
icon = shortcut_id
|
||||
|
||||
label = '{0}\n({1})'.format(short_description, name)
|
||||
label = '{0}\n({1})'.format(short_description, name) if short_description \
|
||||
else name
|
||||
|
||||
shortcuts[shortcut_id] = {
|
||||
'id': shortcut_id,
|
||||
|
||||
@ -92,7 +92,8 @@ def setup(helper, old_version=None):
|
||||
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('infinoted', name, url=None,
|
||||
frontpage.add_shortcut('infinoted', name,
|
||||
short_description=short_description, url=None,
|
||||
details=description,
|
||||
configure_url=reverse_lazy('infinoted:index'),
|
||||
login_required=False)
|
||||
|
||||
@ -77,7 +77,8 @@ def setup(helper, old_version=None):
|
||||
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('jsxc', _('Chat Client \n (jsxc)'),
|
||||
frontpage.add_shortcut('jsxc', name=name,
|
||||
short_description=short_description,
|
||||
url=reverse_lazy('jsxc:jsxc'),
|
||||
login_required=True)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user