From e5967b7ff3130896e0205b6ca06c96495952cc3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 24 Apr 2020 10:02:18 +0200 Subject: [PATCH] moved uds.js to different location for admin and user --- actor/src/udsactor/linux/renamer/common.py | 2 +- server/src/uds/templates/uds/admin/index.html | 2 +- server/src/uds/urls.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/actor/src/udsactor/linux/renamer/common.py b/actor/src/udsactor/linux/renamer/common.py index 6b00685b..cf8d4419 100644 --- a/actor/src/udsactor/linux/renamer/common.py +++ b/actor/src/udsactor/linux/renamer/common.py @@ -47,6 +47,6 @@ def rename(newName: str) -> bool: return renamers[distribution](newName) # Try Debian renamer, simplest one - logger.info('Renamer for platform "{0}" not found, tryin debian renamer'.format(distribution)) + logger.info('Renamer for platform "{0}" not found, trying debian renamer'.format(distribution)) return renamers['debian'](newName) diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index 5a40607e..d8a81259 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -92,6 +92,6 @@ - + diff --git a/server/src/uds/urls.py b/server/src/uds/urls.py index 6a5e70dd..fa85e525 100644 --- a/server/src/uds/urls.py +++ b/server/src/uds/urls.py @@ -89,6 +89,7 @@ urlpatterns = [ # Javascript path(r'uds/utility/uds.js', uds.web.views.modern.js, name="utility.js"), + path(r'uds/adm/utility/uds.js', uds.web.views.modern.js, name="utility-adm.js"), # i18n re_path(r'^uds/utility/i18n/(?P[a-z_-]*).js$', JavaScriptCatalog.as_view(), name='utility.jsCatalog'),