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
@@ -54,9 +54,12 @@ description = [
|
||||
'While using Privoxy, you can see its configuration details and '
|
||||
'documentation at '
|
||||
'<a href="http://config.privoxy.org">http://config.privoxy.org/</a> '
|
||||
'or <a href="http://p.p">http://p.p</a>.'), box_name=_(cfg.box_name))
|
||||
'or <a href="http://p.p">http://p.p</a>.'),
|
||||
box_name=_(cfg.box_name)),
|
||||
]
|
||||
|
||||
configure_url = _('apps/privoxy')
|
||||
|
||||
service = None
|
||||
|
||||
|
||||
@@ -84,7 +87,8 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('privoxy', title, None, 'glyphicon-cloud-upload',
|
||||
description, login_required=True)
|
||||
description, configure_url,
|
||||
login_required=True)
|
||||
|
||||
|
||||
def enable():
|
||||
|
||||
Reference in new issue
Block a user