diff --git a/apps/authentication/templates/authentication/login_wait_confirm.html b/apps/authentication/templates/authentication/login_wait_confirm.html index 8a67a501e..7ee7632f0 100644 --- a/apps/authentication/templates/authentication/login_wait_confirm.html +++ b/apps/authentication/templates/authentication/login_wait_confirm.html @@ -10,7 +10,6 @@ {{ title }} {% include '_head_css_js.html' %} - diff --git a/apps/jumpserver/urls.py b/apps/jumpserver/urls.py index d5c28bc93..331930c3a 100644 --- a/apps/jumpserver/urls.py +++ b/apps/jumpserver/urls.py @@ -1,12 +1,9 @@ # ~*~ coding: utf-8 ~*~ from __future__ import unicode_literals -import os from django.urls import path, include, re_path from django.conf import settings from django.conf.urls.static import static -from django.conf.urls.i18n import i18n_patterns -from django.views.i18n import JavaScriptCatalog from . import views, api @@ -45,10 +42,6 @@ if settings.XPACK_ENABLED: path('xpack/', include('xpack.urls.api_urls', namespace='api-xpack')) ) -js_i18n_patterns = i18n_patterns( - path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'), -) - apps = [ 'users', 'assets', 'perms', 'terminal', 'ops', 'audits', 'orgs', 'auth', @@ -71,7 +64,7 @@ urlpatterns = [ urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) -urlpatterns += js_i18n_patterns +# urlpatterns += js_i18n_patterns handler404 = 'jumpserver.views.handler404' handler500 = 'jumpserver.views.handler500' diff --git a/apps/static/js/jumpserver.js b/apps/static/js/jumpserver.js index b930154ff..787235568 100644 --- a/apps/static/js/jumpserver.js +++ b/apps/static/js/jumpserver.js @@ -3,6 +3,10 @@ //此函数用于checkbox的全选和反选 var checked = false; +function gettext(s) { + return s +} + function check_all(form) { var checkboxes = document.getElementById(form); if (checked === false) { diff --git a/apps/templates/_base_only_content.html b/apps/templates/_base_only_content.html index 1e6a16c84..d773e6a78 100644 --- a/apps/templates/_base_only_content.html +++ b/apps/templates/_base_only_content.html @@ -11,7 +11,6 @@ {% include '_head_css_js.html' %} -