mirror of https://github.com/jumpserver/jumpserver
[Update] 优化datatable 和显示组织优化
parent
492fd98882
commit
206e037cf2
|
@ -17,12 +17,12 @@ from .views import IndexView, LunaView
|
||||||
|
|
||||||
schema_view = get_schema_view(
|
schema_view = get_schema_view(
|
||||||
openapi.Info(
|
openapi.Info(
|
||||||
title="Snippets API",
|
title="Jumpserver API Docs",
|
||||||
default_version='v1',
|
default_version='v1',
|
||||||
description="Test description",
|
description="Jumpserver Restful api docs",
|
||||||
terms_of_service="https://www.google.com/policies/terms/",
|
terms_of_service="https://www.jumpserver.org",
|
||||||
contact=openapi.Contact(email="contact@snippets.local"),
|
contact=openapi.Contact(email="support@fit2cloud.com"),
|
||||||
license=openapi.License(name="BSD License"),
|
license=openapi.License(name="GPLv2 License"),
|
||||||
),
|
),
|
||||||
public=True,
|
public=True,
|
||||||
permission_classes=(permissions.AllowAny,),
|
permission_classes=(permissions.AllowAny,),
|
||||||
|
@ -80,7 +80,7 @@ urlpatterns = [
|
||||||
path('luna/', LunaView.as_view(), name='luna-error'),
|
path('luna/', LunaView.as_view(), name='luna-error'),
|
||||||
path('settings/', include('common.urls.view_urls', namespace='settings')),
|
path('settings/', include('common.urls.view_urls', namespace='settings')),
|
||||||
path('common/', include('common.urls.view_urls', namespace='common')),
|
path('common/', include('common.urls.view_urls', namespace='common')),
|
||||||
re_path(r'^api/v1/.*', redirect_format_api),
|
path('api/v1/', redirect_format_api),
|
||||||
path('api/', include(v1_api_patterns)),
|
path('api/', include(v1_api_patterns)),
|
||||||
|
|
||||||
# Api url view map
|
# Api url view map
|
||||||
|
|
|
@ -6,7 +6,6 @@ from .models import Organization
|
||||||
|
|
||||||
|
|
||||||
def org_processor(request):
|
def org_processor(request):
|
||||||
print('Crernt Org', current_org.name)
|
|
||||||
context = {
|
context = {
|
||||||
'ADMIN_ORGS': Organization.get_user_admin_orgs(request.user),
|
'ADMIN_ORGS': Organization.get_user_admin_orgs(request.user),
|
||||||
'CURRENT_ORG': get_current_org(),
|
'CURRENT_ORG': get_current_org(),
|
||||||
|
|
|
@ -253,6 +253,12 @@ jumpserver.selected = {};
|
||||||
jumpserver.language = {
|
jumpserver.language = {
|
||||||
processing: "加载中",
|
processing: "加载中",
|
||||||
search: "搜索",
|
search: "搜索",
|
||||||
|
select: {
|
||||||
|
rows: {
|
||||||
|
_: "选中 %d 项",
|
||||||
|
0: ""
|
||||||
|
}
|
||||||
|
},
|
||||||
lengthMenu: "每页 _MENU_",
|
lengthMenu: "每页 _MENU_",
|
||||||
info: "显示第 _START_ 至 _END_ 项结果; 总共 _TOTAL_ 项",
|
info: "显示第 _START_ 至 _END_ 项结果; 总共 _TOTAL_ 项",
|
||||||
infoFiltered: "",
|
infoFiltered: "",
|
||||||
|
|
|
@ -6,12 +6,11 @@
|
||||||
<img alt="logo" height="55" width="185" src="/static/img/logo-text.png"/>
|
<img alt="logo" height="55" width="185" src="/static/img/logo-text.png"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{# <div class="clearfix"></div>#}
|
|
||||||
<div class="logo-element">
|
<div class="logo-element">
|
||||||
<img alt="image" height="40" src="/static/img/logo.png"/>
|
<img alt="image" height="40" src="/static/img/logo.png"/>
|
||||||
</div>
|
</div>
|
||||||
{{ request.COOKIE.IN_ADMIN_PAGE }}
|
{% if ADMIN_ORGS and request.COOKIES.IN_ADMIN_PAGE != 'No' %}
|
||||||
{% if ADMIN_ORGS and ADMIN_ORGS|length != 1 and request.COOKIES.IN_ADMIN_PAGE != 'No' %}
|
{% if ADMIN_ORGS|length > 1 or not CURRENT_ORG.is_default %}
|
||||||
<div style="height: 55px;">
|
<div style="height: 55px;">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" style="display: block; background-color: transparent; color: #8095a8; padding: 14px 20px 14px 25px">
|
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" style="display: block; background-color: transparent; color: #8095a8; padding: 14px 20px 14px 25px">
|
||||||
<i class="fa fa-bookmark" style="width: 14px; "></i>
|
<i class="fa fa-bookmark" style="width: 14px; "></i>
|
||||||
|
@ -36,6 +35,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
Loading…
Reference in New Issue