Fix front page label names

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Prachi Srivastava 2017-09-27 11:58:18 +05:30 committed by James Valleroy
parent 33f3e4568c
commit 667282bae9
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 6 additions and 3 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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)