mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
- Add 'secondary' flag to menu items. - Mark apps as 'secondary' when disabled. - Extend TemplateView for apps index. - Add card-container for disabled apps. Closes #1309 Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
48 lines
1.8 KiB
Python
48 lines
1.8 KiB
Python
#
|
|
# This file is part of FreedomBox.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
"""
|
|
Django URLconf file containing all urls
|
|
"""
|
|
from django.conf.urls import url
|
|
|
|
from captcha import views as cviews
|
|
from plinth.modules.sso.views import CaptchaLoginView
|
|
from stronghold.decorators import public
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
url(r'^$', views.index, name='index'),
|
|
url(r'^language-selection/$', public(
|
|
views.LanguageSelectionView.as_view()), name='language-selection'),
|
|
url(r'^apps/$', views.AppsIndexView.as_view(), name='apps'),
|
|
url(r'^sys/$', views.system_index, name='system'),
|
|
|
|
# captcha urls are public
|
|
url(r'^captcha/image/(?P<key>\w+)/$', public(cviews.captcha_image),
|
|
name='captcha-image', kwargs={'scale': 1}),
|
|
url(r'^captcha/image/(?P<key>\w+)@2/$', public(cviews.captcha_image),
|
|
name='captcha-image-2x', kwargs={'scale': 2}),
|
|
url(r'^captcha/audio/(?P<key>\w+)/$', public(cviews.captcha_audio),
|
|
name='captcha-audio'),
|
|
url(r'^captcha/refresh/$', public(cviews.captcha_refresh),
|
|
name='captcha-refresh'),
|
|
|
|
# locked url from django-axes
|
|
url(r'locked/$', public(CaptchaLoginView.as_view()), name='locked_out'),
|
|
]
|