mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
frontpage: Show Configure button in service details
Only show when user is logged in.
This commit is contained in:
1 parent
9ca42fd271
commit
8f147e4c7f
10 files changed
+48
-14
No files matched your search
@@ -49,9 +49,11 @@ description = [
|
||||
|
||||
_('To actually communicate, you can use the web client or any other '
|
||||
'<a href=\'http://xmpp.org/xmpp-software/clients/\' target=\'_blank\''
|
||||
'>XMPP client</a>.')
|
||||
'>XMPP client</a>.'),
|
||||
]
|
||||
|
||||
configure_url = _('apps/xmpp')
|
||||
|
||||
service = None
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -92,9 +94,10 @@ def setup(helper, old_version=None):
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('jsxc', _('Chat Client (jsxc)'),
|
||||
reverse_lazy('xmpp:jsxc'), 'glyphicon-comment',
|
||||
login_required=True)
|
||||
None, login_required=True)
|
||||
frontpage.add_shortcut('xmpp', title, None, 'glyphicon-comment',
|
||||
description, login_required=True)
|
||||
description, configure_url,
|
||||
login_required=True)
|
||||
|
||||
|
||||
def is_enabled():
|
||||
|
||||
Reference in new issue
Block a user