mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
frontpage: Use reverse_lazy for Configure links
This commit is contained in:
parent
96b63a0ab5
commit
0a20e1e83a
@ -19,7 +19,7 @@
|
||||
Plinth module for minetest.
|
||||
"""
|
||||
|
||||
from django.urls import reverse
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
@ -90,7 +90,7 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('minetest', title, None, 'glyphicon-th-large',
|
||||
description, reverse('minetest:index'),
|
||||
description, reverse_lazy('minetest:index'),
|
||||
login_required=False)
|
||||
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
Plinth module to configure Mumble server
|
||||
"""
|
||||
|
||||
from django.urls import reverse
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
@ -90,7 +90,7 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('mumble', title, None, 'glyphicon-headphones',
|
||||
description, reverse('mumble:index'),
|
||||
description, reverse_lazy('mumble:index'),
|
||||
login_required=False)
|
||||
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
Plinth module to configure Privoxy.
|
||||
"""
|
||||
|
||||
from django.urls import reverse
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
@ -95,7 +95,7 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('privoxy', title, None, 'glyphicon-cloud-upload',
|
||||
description, reverse('privoxy:index'),
|
||||
description, reverse_lazy('privoxy:index'),
|
||||
login_required=True)
|
||||
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
Plinth module for Quassel.
|
||||
"""
|
||||
|
||||
from django.urls import reverse
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
@ -96,7 +96,7 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('quassel', title, None, 'glyphicon-retweet',
|
||||
description, reverse('quassel:index'),
|
||||
description, reverse_lazy('quassel:index'),
|
||||
login_required=True)
|
||||
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ Plinth module for radicale.
|
||||
"""
|
||||
|
||||
import augeas
|
||||
from django.urls import reverse
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
@ -88,7 +88,7 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('radicale', title, None, 'glyphicon-calendar',
|
||||
description, reverse('radicale:index'),
|
||||
description, reverse_lazy('radicale:index'),
|
||||
login_required=True)
|
||||
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
Plinth module for repro.
|
||||
"""
|
||||
|
||||
from django.urls import reverse
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
@ -102,7 +102,7 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('repro', title, None, 'glyphicon-phone-alt',
|
||||
description, reverse('repro:index'),
|
||||
description, reverse_lazy('repro:index'),
|
||||
login_required=True)
|
||||
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
Plinth module to configure XMPP server
|
||||
"""
|
||||
|
||||
from django.urls import reverse, reverse_lazy
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
import logging
|
||||
import socket
|
||||
@ -102,7 +102,7 @@ def add_shortcut():
|
||||
reverse_lazy('xmpp:jsxc'), 'glyphicon-comment',
|
||||
None, login_required=True)
|
||||
frontpage.add_shortcut('xmpp', title, None, 'glyphicon-comment',
|
||||
description, reverse('xmpp:index'),
|
||||
description, reverse_lazy('xmpp:index'),
|
||||
login_required=True)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user