Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
f7ab1395
Commit
f7ab1395
authored
Mar 02, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复bug,修改celery beat版本依赖
parent
5dcdeddf
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
194 additions
and
155 deletions
+194
-155
_system_user.html
apps/assets/templates/assets/_system_user.html
+22
-0
django.mo
apps/i18n/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/i18n/zh/LC_MESSAGES/django.po
+160
-149
views.py
apps/jumpserver/views.py
+2
-1
serializers.py
apps/perms/serializers.py
+1
-1
_header_bar.html
apps/templates/_header_bar.html
+6
-1
index.html
apps/templates/index.html
+1
-1
requirements.txt
requirements/requirements.txt
+2
-2
No files found.
apps/assets/templates/assets/_system_user.html
View file @
f7ab1395
...
...
@@ -81,6 +81,14 @@
{% block custom_foot_js %}
<script>
var
auto_generate_key
=
'#'
+
'{{ form.auto_generate_key.id_for_label }}'
;
var
protocol_id
=
'#'
+
'{{ form.protocol.id_for_label }}'
;
var
password_id
=
'#'
+
'{{ form.password.id_for_label }}'
;
var
private_key_id
=
'#'
+
'{{ form.private_key_file.id_for_label }}'
;
var
sudo_id
=
'#'
+
'{{ form.sudo.id_for_label }}'
;
var
shell_id
=
'#'
+
'{{ form.shell.id_for_label }}'
;
var
need_change_field
=
[
auto_generate_key
,
private_key_id
,
sudo_id
,
shell_id
]
;
function
authFieldsDisplay
()
{
if
(
$
(
auto_generate_key
).
prop
(
'checked'
))
{
$
(
'.auth-fields'
).
addClass
(
'hidden'
);
...
...
@@ -88,9 +96,23 @@
$
(
'.auth-fields'
).
removeClass
(
'hidden'
);
}
}
function
protocolChange
()
{
if
(
$
(
protocol_id
).
attr
(
'value'
)
===
'rdp'
)
{
$
.
each
(
need_change_field
,
function
(
index
,
value
)
{
$
(
value
).
addClass
(
'hidden'
)
});
$
(
password_id
).
removeClass
(
'hidden'
)
}
else
{
$
.
each
(
need_change_field
,
function
(
index
,
value
)
{
$
(
value
).
removeClass
(
'hidden'
)
});
}
}
$
(
document
).
ready
(
function
()
{
$
(
'.select2'
).
select2
();
authFieldsDisplay
();
protocolChange
();
$
(
auto_generate_key
).
change
(
function
()
{
authFieldsDisplay
();
});
...
...
apps/i18n/zh/LC_MESSAGES/django.mo
View file @
f7ab1395
No preview for this file type
apps/i18n/zh/LC_MESSAGES/django.po
View file @
f7ab1395
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-0
2-26 16:54
+0800\n"
"POT-Creation-Date: 2018-0
3-01 15:29
+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
...
...
@@ -17,12 +17,12 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: assets/api/node.py:5
4
#: assets/api/node.py:5
5
msgid "New node {}"
msgstr "新节点 {}"
#: assets/forms/asset.py:23 assets/forms/asset.py:52 assets/forms/user.py:125
#: assets/models/asset.py:
45 assets/models/user.py:221
#: assets/models/asset.py:
53 assets/models/user.py:218
#: assets/templates/assets/asset_detail.html:181
#: assets/templates/assets/asset_detail.html:189
#: assets/templates/assets/system_user_detail.html:164
...
...
@@ -30,16 +30,16 @@ msgid "Nodes"
msgstr "节点管理"
#: assets/forms/asset.py:26 assets/forms/asset.py:55 assets/forms/asset.py:90
#: assets/forms/asset.py:94 assets/models/asset.py:
49
#: assets/models/cluster.py:19 assets/models/user.py:1
90
#: assets/templates/assets/asset_detail.html:73 templates/_nav.html:2
3
#: assets/forms/asset.py:94 assets/models/asset.py:
57
#: assets/models/cluster.py:19 assets/models/user.py:1
87
#: assets/templates/assets/asset_detail.html:73 templates/_nav.html:2
4
msgid "Admin user"
msgstr "管理用户"
#: assets/forms/asset.py:29 assets/forms/asset.py:58 assets/models/asset.py:
73
#: assets/templates/assets/asset_create.html:3
1
#: assets/forms/asset.py:29 assets/forms/asset.py:58 assets/models/asset.py:
81
#: assets/templates/assets/asset_create.html:3
2
#: assets/templates/assets/asset_detail.html:218
#: assets/templates/assets/asset_update.html:3
6 templates/_nav.html:25
#: assets/templates/assets/asset_update.html:3
7 templates/_nav.html:26
msgid "Labels"
msgstr "标签管理"
...
...
@@ -54,7 +54,7 @@ msgstr "管理用户是资产上已经存在的特权用户,如 root或者其
msgid "Select assets"
msgstr "选择资产"
#: assets/forms/asset.py:86 assets/models/asset.py:
44
#: assets/forms/asset.py:86 assets/models/asset.py:
52
#: assets/templates/assets/admin_user_assets.html:53
#: assets/templates/assets/asset_detail.html:69
#: assets/templates/assets/system_user_asset.html:51
...
...
@@ -62,7 +62,7 @@ msgstr "选择资产"
msgid "Port"
msgstr "端口"
#: assets/forms/asset.py:106 assets/templates/assets/asset_create.html:3
5
#: assets/forms/asset.py:106 assets/templates/assets/asset_create.html:3
6
msgid "Select labels"
msgstr "选择标签"
...
...
@@ -70,11 +70,11 @@ msgstr "选择标签"
msgid "Select nodes"
msgstr "选择节点"
#: assets/forms/label.py:13 assets/models/asset.py:1
37
#: assets/forms/label.py:13 assets/models/asset.py:1
53
#: assets/templates/assets/admin_user_list.html:24
#: assets/templates/assets/label_list.html:16
#: assets/templates/assets/system_user_list.html:26 perms/models.py:17
#: terminal/backends/command/models.py:11 terminal/models.py:1
16
#: terminal/backends/command/models.py:11 terminal/models.py:1
23
#: terminal/templates/terminal/command_list.html:40
#: terminal/templates/terminal/command_list.html:73
#: terminal/templates/terminal/session_list.html:41
...
...
@@ -116,11 +116,11 @@ msgstr "密码和私钥, 必须输入一个"
#: assets/templates/assets/system_user_detail.html:58
#: assets/templates/assets/system_user_list.html:24 common/models.py:26
#: common/templates/common/terminal_setting.html:67
#: common/templates/common/terminal_setting.html:8
8
ops/models.py:31
#: common/templates/common/terminal_setting.html:8
5
ops/models.py:31
#: ops/templates/ops/task_detail.html:56 ops/templates/ops/task_list.html:34
#: perms/models.py:14 perms/templates/perms/asset_permission_detail.html:62
#: perms/templates/perms/asset_permission_user.html:54 terminal/models.py:1
5
#: terminal/models.py:14
1
terminal/templates/terminal/terminal_detail.html:43
#: perms/templates/perms/asset_permission_user.html:54 terminal/models.py:1
6
#: terminal/models.py:14
9
terminal/templates/terminal/terminal_detail.html:43
#: terminal/templates/terminal/terminal_list.html:29 users/models/group.py:14
#: users/models/user.py:35 users/templates/users/_select_user_modal.html:13
#: users/templates/users/user_detail.html:63
...
...
@@ -162,7 +162,7 @@ msgid ""
"than 2 system user"
msgstr "高优先级的系统用户将会作为默认登录用户"
#: assets/models/asset.py:
42
assets/templates/assets/_asset_list_modal.html:21
#: assets/models/asset.py:
50
assets/templates/assets/_asset_list_modal.html:21
#: assets/templates/assets/admin_user_assets.html:52
#: assets/templates/assets/asset_detail.html:61
#: assets/templates/assets/asset_list.html:81
...
...
@@ -175,7 +175,7 @@ msgstr "高优先级的系统用户将会作为默认登录用户"
msgid "IP"
msgstr "IP"
#: assets/models/asset.py:
43
assets/templates/assets/_asset_list_modal.html:20
#: assets/models/asset.py:
51
assets/templates/assets/_asset_list_modal.html:20
#: assets/templates/assets/admin_user_assets.html:51
#: assets/templates/assets/asset_detail.html:57
#: assets/templates/assets/asset_list.html:80
...
...
@@ -187,77 +187,77 @@ msgstr "IP"
msgid "Hostname"
msgstr "主机名"
#: assets/models/asset.py:
46
assets/models/label.py:20
#: assets/models/asset.py:
54
assets/models/label.py:20
#: assets/templates/assets/asset_detail.html:105
#: perms/templates/perms/asset_permission_list.html:70
msgid "Is active"
msgstr "激活"
#: assets/models/asset.py:
52
assets/templates/assets/asset_detail.html:65
#: assets/models/asset.py:
60
assets/templates/assets/asset_detail.html:65
msgid "Public IP"
msgstr "公网IP"
#: assets/models/asset.py:
53
assets/templates/assets/asset_detail.html:113
#: assets/models/asset.py:
61
assets/templates/assets/asset_detail.html:113
msgid "Asset number"
msgstr "资产编号"
#: assets/models/asset.py:
56
assets/templates/assets/asset_detail.html:77
#: assets/models/asset.py:
64
assets/templates/assets/asset_detail.html:77
msgid "Vendor"
msgstr "制造商"
#: assets/models/asset.py:
57
assets/templates/assets/asset_detail.html:81
#: assets/models/asset.py:
65
assets/templates/assets/asset_detail.html:81
msgid "Model"
msgstr "型号"
#: assets/models/asset.py:
58
assets/templates/assets/asset_detail.html:109
#: assets/models/asset.py:
66
assets/templates/assets/asset_detail.html:109
msgid "Serial number"
msgstr "序列号"
#: assets/models/asset.py:6
0
#: assets/models/asset.py:6
8
msgid "CPU model"
msgstr "CPU型号"
#: assets/models/asset.py:6
1
#: assets/models/asset.py:6
9
msgid "CPU count"
msgstr "CPU数量"
#: assets/models/asset.py:
62
#: assets/models/asset.py:
70
msgid "CPU cores"
msgstr "CPU核数"
#: assets/models/asset.py:
63
assets/templates/assets/asset_detail.html:89
#: assets/models/asset.py:
71
assets/templates/assets/asset_detail.html:89
msgid "Memory"
msgstr "内存"
#: assets/models/asset.py:
64
#: assets/models/asset.py:
72
msgid "Disk total"
msgstr "硬盘大小"
#: assets/models/asset.py:
65
#: assets/models/asset.py:
73
msgid "Disk info"
msgstr "硬盘信息"
#: assets/models/asset.py:
67
assets/templates/assets/asset_detail.html:97
#: assets/models/asset.py:
75
assets/templates/assets/asset_detail.html:97
msgid "Platform"
msgstr "系统平台"
#: assets/models/asset.py:
68
assets/templates/assets/asset_detail.html:101
#: assets/models/asset.py:
76
assets/templates/assets/asset_detail.html:101
msgid "OS"
msgstr "操作系统"
#: assets/models/asset.py:
69
#: assets/models/asset.py:
77
msgid "OS version"
msgstr "系统版本"
#: assets/models/asset.py:7
0
#: assets/models/asset.py:7
8
msgid "OS arch"
msgstr "系统架构"
#: assets/models/asset.py:7
1
#: assets/models/asset.py:7
9
msgid "Hostname raw"
msgstr "主机名原始"
#: assets/models/asset.py:
74
assets/models/cluster.py:28
#: assets/models/asset.py:
82
assets/models/cluster.py:28
#: assets/models/group.py:21 assets/models/user.py:36
#: assets/templates/assets/admin_user_detail.html:68
#: assets/templates/assets/asset_detail.html:117
...
...
@@ -268,7 +268,7 @@ msgstr "主机名原始"
msgid "Created by"
msgstr "创建者"
#: assets/models/asset.py:
75
assets/models/cluster.py:26
#: assets/models/asset.py:
83
assets/models/cluster.py:26
#: assets/models/group.py:22 assets/models/label.py:23
#: assets/templates/assets/admin_user_detail.html:64
#: assets/templates/assets/system_user_detail.html:92
...
...
@@ -280,7 +280,7 @@ msgstr "创建者"
msgid "Date created"
msgstr "创建日期"
#: assets/models/asset.py:
76
assets/models/cluster.py:29
#: assets/models/asset.py:
84
assets/models/cluster.py:29
#: assets/models/group.py:23 assets/models/label.py:21 assets/models/user.py:33
#: assets/templates/assets/admin_user_detail.html:72
#: assets/templates/assets/admin_user_list.html:28
...
...
@@ -288,7 +288,7 @@ msgstr "创建日期"
#: assets/templates/assets/system_user_detail.html:100
#: assets/templates/assets/system_user_list.html:30 common/models.py:30
#: ops/models.py:37 perms/models.py:24 perms/models.py:81
#: perms/templates/perms/asset_permission_detail.html:98 terminal/models.py:2
5
#: perms/templates/perms/asset_permission_detail.html:98 terminal/models.py:2
6
#: terminal/templates/terminal/terminal_detail.html:63 users/models/group.py:15
#: users/models/user.py:47 users/templates/users/user_detail.html:111
#: users/templates/users/user_group_detail.html:67
...
...
@@ -331,7 +331,7 @@ msgid "Default"
msgstr "默认"
#: assets/models/cluster.py:36 assets/models/label.py:13
#: users/models/user.py:26
1
#: users/models/user.py:26
5
msgid "System"
msgstr "系统"
...
...
@@ -352,13 +352,13 @@ msgid "Default asset group"
msgstr "默认资产组"
#: assets/models/label.py:14 perms/models.py:15
#: terminal/backends/command/models.py:10 terminal/models.py:1
15
#: terminal/backends/command/models.py:10 terminal/models.py:1
22
#: terminal/templates/terminal/command_list.html:32
#: terminal/templates/terminal/command_list.html:72
#: terminal/templates/terminal/session_list.html:33
#: terminal/templates/terminal/session_list.html:71 users/forms.py:190
#: users/models/user.py:30 users/templates/users/user_group_detail.html:78
#: users/templates/users/user_group_list.html:13 users/views/user.py:33
0
#: users/templates/users/user_group_list.html:13 users/views/user.py:33
4
msgid "User"
msgstr "用户"
...
...
@@ -383,32 +383,32 @@ msgstr "ssh密钥"
msgid "SSH public key"
msgstr "ssh公钥"
#: assets/models/user.py:2
22
#: assets/models/user.py:2
19
msgid "Priority"
msgstr "优先级"
#: assets/models/user.py:22
3
assets/templates/assets/system_user_detail.html:66
#: assets/models/user.py:22
0
assets/templates/assets/system_user_detail.html:66
msgid "Protocol"
msgstr "协议"
#: assets/models/user.py:22
4
assets/templates/assets/_system_user.html:58
#: assets/models/user.py:22
1
assets/templates/assets/_system_user.html:58
#: assets/templates/assets/system_user_detail.html:118
#: assets/templates/assets/system_user_update.html:11
msgid "Auto push"
msgstr "自动推送"
#: assets/models/user.py:22
5
assets/templates/assets/system_user_detail.html:70
#: assets/models/user.py:22
2
assets/templates/assets/system_user_detail.html:70
msgid "Sudo"
msgstr "Sudo"
#: assets/models/user.py:22
6
assets/templates/assets/system_user_detail.html:75
#: assets/models/user.py:22
3
assets/templates/assets/system_user_detail.html:75
msgid "Shell"
msgstr "Shell"
#: assets/models/user.py:26
9
perms/forms.py:25 perms/models.py:19
#: assets/models/user.py:26
6
perms/forms.py:25 perms/models.py:19
#: perms/models.py:76 perms/templates/perms/asset_permission_detail.html:136
#: perms/templates/perms/asset_permission_list.html:69 templates/_nav.html:2
4
#: terminal/backends/command/models.py:12 terminal/models.py:1
17
#: perms/templates/perms/asset_permission_list.html:69 templates/_nav.html:2
5
#: terminal/backends/command/models.py:12 terminal/models.py:1
24
#: terminal/templates/terminal/command_list.html:48
#: terminal/templates/terminal/command_list.html:74
#: terminal/templates/terminal/session_list.html:49
...
...
@@ -479,7 +479,7 @@ msgstr "仅修改你需要更新的字段"
#: assets/views/label.py:42 assets/views/label.py:58
#: assets/views/system_user.py:28 assets/views/system_user.py:44
#: assets/views/system_user.py:60 assets/views/system_user.py:74
#: templates/_nav.html:
19
#: templates/_nav.html:
20
msgid "Assets"
msgstr "资产管理"
...
...
@@ -564,7 +564,7 @@ msgstr "可连接"
#: ops/templates/ops/adhoc_history.html:59 ops/templates/ops/task_adhoc.html:61
#: ops/templates/ops/task_history.html:62 ops/templates/ops/task_list.html:41
#: perms/templates/perms/asset_permission_list.html:72
#: terminal/templates/terminal/session_list.html:
79
#: terminal/templates/terminal/session_list.html:
80
#: terminal/templates/terminal/terminal_list.html:36
#: users/templates/users/user_group_list.html:15
#: users/templates/users/user_list.html:28
...
...
@@ -599,16 +599,16 @@ msgstr "激活所选"
#: assets/templates/assets/_system_user.html:71
#: assets/templates/assets/admin_user_create_update.html:46
#: assets/templates/assets/asset_bulk_update.html:24
#: assets/templates/assets/asset_create.html:6
5
#: assets/templates/assets/asset_create.html:6
6
#: assets/templates/assets/asset_list.html:102
#: assets/templates/assets/asset_update.html:
69
#: assets/templates/assets/asset_update.html:
70
#: assets/templates/assets/label_create_update.html:17
#: common/templates/common/basic_setting.html:59
#: common/templates/common/email_setting.html:60
#: common/templates/common/ldap_setting.html:60
#: common/templates/common/terminal_setting.html:10
8
#: common/templates/common/terminal_setting.html:10
3
#: perms/templates/perms/asset_permission_create_update.html:72
#: terminal/templates/terminal/terminal_update.html:4
7
#: terminal/templates/terminal/terminal_update.html:4
8
#: users/templates/users/_user.html:44
#: users/templates/users/first_login.html:62
#: users/templates/users/forgot_password.html:44
...
...
@@ -673,8 +673,8 @@ msgid "Basic"
msgstr "基本"
#: assets/templates/assets/_system_user.html:44
#: assets/templates/assets/asset_create.html:2
3
#: assets/templates/assets/asset_update.html:2
8
#: assets/templates/assets/asset_create.html:2
4
#: assets/templates/assets/asset_update.html:2
9
#: assets/templates/assets/system_user_update.html:7
#: users/templates/users/user_create.html:9
#: users/templates/users/user_update.html:6
...
...
@@ -686,25 +686,25 @@ msgid "Auto generate key"
msgstr "自动生成秘钥"
#: assets/templates/assets/_system_user.html:64
#: assets/templates/assets/asset_create.html:5
7
#: assets/templates/assets/asset_update.html:6
1
#: assets/templates/assets/asset_create.html:5
8
#: assets/templates/assets/asset_update.html:6
2
#: perms/templates/perms/asset_permission_create_update.html:49
#: terminal/templates/terminal/terminal_update.html:4
1
#: terminal/templates/terminal/terminal_update.html:4
2
msgid "Other"
msgstr "其它"
#: assets/templates/assets/_system_user.html:70
#: assets/templates/assets/admin_user_create_update.html:45
#: assets/templates/assets/asset_bulk_update.html:23
#: assets/templates/assets/asset_create.html:6
4
#: assets/templates/assets/asset_update.html:6
8
#: assets/templates/assets/asset_create.html:6
5
#: assets/templates/assets/asset_update.html:6
9
#: assets/templates/assets/label_create_update.html:16
#: common/templates/common/basic_setting.html:58
#: common/templates/common/email_setting.html:59
#: common/templates/common/ldap_setting.html:59
#: common/templates/common/terminal_setting.html:10
6
#: common/templates/common/terminal_setting.html:10
1
#: perms/templates/perms/asset_permission_create_update.html:71
#: terminal/templates/terminal/terminal_update.html:4
6
#: terminal/templates/terminal/terminal_update.html:4
7
#: users/templates/users/_user.html:43
#: users/templates/users/user_bulk_update.html:23
#: users/templates/users/user_password_update.html:58
...
...
@@ -773,7 +773,7 @@ msgstr "替换资产的管理员"
#: assets/templates/assets/admin_user_detail.html:100
#: assets/templates/assets/asset_detail.html:198
#: assets/templates/assets/asset_list.html:
482
#: assets/templates/assets/asset_list.html:
535
#: assets/templates/assets/system_user_detail.html:181
#: assets/templates/assets/system_user_list.html:135 templates/_modal.html:16
#: terminal/templates/terminal/session_detail.html:108
...
...
@@ -799,16 +799,16 @@ msgstr "不可达"
msgid "Ratio"
msgstr "比例"
#: assets/templates/assets/asset_create.html:2
7
#: assets/templates/assets/asset_update.html:3
2
perms/models.py:74
#: assets/templates/assets/asset_create.html:2
8
#: assets/templates/assets/asset_update.html:3
3
perms/models.py:74
#: perms/templates/perms/asset_permission_create_update.html:40
#: perms/templates/perms/asset_permission_list.html:67
msgid "Node"
msgstr "节点"
#: assets/templates/assets/asset_create.html:3
3
#: assets/templates/assets/asset_create.html:3
4
#: assets/templates/assets/asset_list.html:69
#: assets/templates/assets/asset_update.html:3
8
#: assets/templates/assets/asset_update.html:3
9
msgid "Label"
msgstr "标签"
...
...
@@ -893,7 +893,7 @@ msgstr "创建节点失败"
msgid "Have child node, cancel"
msgstr "存在子节点,不能删除"
#: assets/templates/assets/asset_list.html:
477
#: assets/templates/assets/asset_list.html:
530
#: assets/templates/assets/system_user_list.html:130
#: users/templates/users/user_detail.html:334
#: users/templates/users/user_detail.html:359
...
...
@@ -902,24 +902,24 @@ msgstr "存在子节点,不能删除"
msgid "Are you sure?"
msgstr "你确认吗?"
#: assets/templates/assets/asset_list.html:
478
#: assets/templates/assets/asset_list.html:
531
msgid "This will delete the selected assets !!!"
msgstr "删除选择资产"
#: assets/templates/assets/asset_list.html:
486
#: assets/templates/assets/asset_list.html:
539
msgid "Asset Deleted."
msgstr "已被删除"
#: assets/templates/assets/asset_list.html:
487
#: assets/templates/assets/asset_list.html:
492
#: assets/templates/assets/asset_list.html:
540
#: assets/templates/assets/asset_list.html:
545
msgid "Asset Delete"
msgstr "删除"
#: assets/templates/assets/asset_list.html:
491
#: assets/templates/assets/asset_list.html:
544
msgid "Asset Deleting failed."
msgstr "删除失败"
#: assets/templates/assets/asset_update.html:5
7
#: assets/templates/assets/asset_update.html:5
8
msgid "Configuration"
msgstr "配置"
...
...
@@ -1011,7 +1011,7 @@ msgstr "更新管理用户"
msgid "Admin user detail"
msgstr "管理用户详情"
#: assets/views/asset.py:49 assets/views/asset.py:62 templates/_nav.html:2
2
#: assets/views/asset.py:49 assets/views/asset.py:62 templates/_nav.html:2
3
msgid "Asset list"
msgstr "资产列表"
...
...
@@ -1023,7 +1023,7 @@ msgstr "批量更新资产"
msgid "Update asset"
msgstr "编辑资产"
#: assets/views/asset.py:29
6
#: assets/views/asset.py:29
7
msgid "already exists"
msgstr "已经存在"
...
...
@@ -1195,7 +1195,7 @@ msgid "Public key auth"
msgstr "秘钥认证"
#: common/forms.py:159 common/templates/common/terminal_setting.html:63
#: terminal/forms.py:
21 terminal/models.py:19
#: terminal/forms.py:
30 terminal/models.py:20
msgid "Command storage"
msgstr "命令存储"
...
...
@@ -1205,8 +1205,8 @@ msgid ""
"other storage and some terminal using"
msgstr "设置终端命令存储,default是默认用的存储方式"
#: common/forms.py:165 common/templates/common/terminal_setting.html:8
4
#: terminal/
models.py:20
#: common/forms.py:165 common/templates/common/terminal_setting.html:8
1
#: terminal/
forms.py:34 terminal/models.py:21
msgid "Replay storage"
msgstr "录像存储"
...
...
@@ -1263,19 +1263,13 @@ msgid "Test connection"
msgstr "测试连接"
#: common/templates/common/terminal_setting.html:68
#: common/templates/common/terminal_setting.html:8
9
#: common/templates/common/terminal_setting.html:8
6
#: users/templates/users/login_log_list.html:50
msgid "Type"
msgstr "类型"
#: common/templates/common/terminal_setting.html:90
#: users/templates/users/reset_password.html:57
#: users/templates/users/user_profile.html:20
msgid "Setting"
msgstr "设置"
#: common/views.py:20 common/views.py:46 common/views.py:72 common/views.py:102
#: templates/_nav.html:6
6
#: templates/_nav.html:6
7
msgid "Settings"
msgstr "系统设置"
...
...
@@ -1430,7 +1424,7 @@ msgstr "执行历史"
#: ops/templates/ops/adhoc_history.html:52
#: ops/templates/ops/adhoc_history_detail.html:58
#: ops/templates/ops/task_history.html:55 terminal/models.py:1
24
#: ops/templates/ops/task_history.html:55 terminal/models.py:1
32
#: terminal/templates/terminal/session_list.html:77
msgid "Date start"
msgstr "开始日期"
...
...
@@ -1542,7 +1536,7 @@ msgstr "任务开始: "
msgid "Ops"
msgstr "作业中心"
#: ops/views.py:37 templates/_nav.html:5
2
#: ops/views.py:37 templates/_nav.html:5
3
msgid "Task list"
msgstr "任务列表"
...
...
@@ -1551,7 +1545,7 @@ msgid "Task run history"
msgstr "执行历史"
#: perms/forms.py:22 perms/models.py:16 perms/models.py:75
#: perms/templates/perms/asset_permission_list.html:68 templates/_nav.html:1
3
#: perms/templates/perms/asset_permission_list.html:68 templates/_nav.html:1
4
#: users/models/user.py:37 users/templates/users/_select_user_modal.html:16
#: users/templates/users/user_detail.html:179
#: users/templates/users/user_list.html:26
...
...
@@ -1566,7 +1560,7 @@ msgstr "用户组"
msgid "Date expired"
msgstr "失效日期"
#: perms/models.py:88 templates/_nav.html:3
2
#: perms/models.py:88 templates/_nav.html:3
3
msgid "Asset permission"
msgstr "资产授权"
...
...
@@ -1660,7 +1654,7 @@ msgstr "添加用户组"
msgid "Select user groups"
msgstr "选择用户组"
#: perms/views.py:23 perms/views.py:47 perms/views.py:67 templates/_nav.html:
29
#: perms/views.py:23 perms/views.py:47 perms/views.py:67 templates/_nav.html:
30
msgid "Perms"
msgstr "权限管理"
...
...
@@ -1677,37 +1671,41 @@ msgid "Update asset permission"
msgstr "更新资产授权"
#: templates/_header_bar.html:18
msgid "
Help
"
msgstr "
帮助
"
msgid "
Supports
"
msgstr "
商业支持
"
#: templates/_header_bar.html:32 templates/_nav_user.html:9
#: templates/_header_bar.html:23
msgid "Docs"
msgstr "文档"
#: templates/_header_bar.html:37 templates/_nav_user.html:9
#: users/templates/users/_user.html:36
#: users/templates/users/user_password_update.html:37
#: users/templates/users/user_profile.html:17
#: users/templates/users/user_profile_update.html:37
#: users/templates/users/user_profile_update.html:57
#: users/templates/users/user_pubkey_update.html:37 users/views/user.py:31
3
#: users/templates/users/user_pubkey_update.html:37 users/views/user.py:31
7
msgid "Profile"
msgstr "个人信息"
#: templates/_header_bar.html:
36
#: templates/_header_bar.html:
41
msgid "Admin page"
msgstr "管理页面"
#: templates/_header_bar.html:
38
#: templates/_header_bar.html:
43
msgid "User page"
msgstr "用户页面"
#: templates/_header_bar.html:4
1
#: templates/_header_bar.html:4
6
msgid "Logout"
msgstr "注销登录"
#: templates/_header_bar.html:
45
users/templates/users/login.html:42
#: templates/_header_bar.html:
50
users/templates/users/login.html:42
#: users/templates/users/login.html:61
msgid "Login"
msgstr "登录"
#: templates/_header_bar.html:
58
templates/_nav.html:4
#: templates/_header_bar.html:
63
templates/_nav.html:4
msgid "Dashboard"
msgstr "仪表盘"
...
...
@@ -1741,39 +1739,39 @@ msgstr ""
msgid "Close"
msgstr "关闭"
#: templates/_nav.html:
9
users/views/group.py:28 users/views/group.py:44
#: templates/_nav.html:
10
users/views/group.py:28 users/views/group.py:44
#: users/views/group.py:62 users/views/group.py:79 users/views/login.py:200
#: users/views/login.py:249 users/views/user.py:5
7 users/views/user.py:72
#: users/views/user.py:9
1 users/views/user.py:147 users/views/user.py:300
#: users/views/user.py:31
2 users/views/user.py:348 users/views/user.py:370
#: users/views/login.py:249 users/views/user.py:5
9 users/views/user.py:74
#: users/views/user.py:9
3 users/views/user.py:149 users/views/user.py:304
#: users/views/user.py:31
6 users/views/user.py:352 users/views/user.py:374
msgid "Users"
msgstr "用户管理"
#: templates/_nav.html:1
2 users/views/user.py:58
#: templates/_nav.html:1
3 users/views/user.py:60
msgid "User list"
msgstr "用户列表"
#: templates/_nav.html:1
4
#: templates/_nav.html:1
5
msgid "Login logs"
msgstr "登录日志"
#: templates/_nav.html:3
8
#: templates/_nav.html:3
9
msgid "Sessions"
msgstr "会话管理"
#: templates/_nav.html:4
1
#: templates/_nav.html:4
2
msgid "Session online"
msgstr "在线会话"
#: templates/_nav.html:4
2
#: templates/_nav.html:4
3
msgid "Session offline"
msgstr "历史会话"
#: templates/_nav.html:4
3
#: templates/_nav.html:4
4
msgid "Commands"
msgstr "命令记录"
#: templates/_nav.html:4
4
terminal/templates/terminal/session_list.html:75
#: templates/_nav.html:4
5
terminal/templates/terminal/session_list.html:75
#: terminal/views/command.py:47 terminal/views/session.py:75
#: terminal/views/session.py:92 terminal/views/session.py:114
#: terminal/views/terminal.py:31 terminal/views/terminal.py:46
...
...
@@ -1781,7 +1779,7 @@ msgstr "命令记录"
msgid "Terminal"
msgstr "终端管理"
#: templates/_nav.html:
49
#: templates/_nav.html:
50
msgid "Job Center"
msgstr "作业中心"
...
...
@@ -1819,71 +1817,77 @@ msgstr "输出"
msgid "Session"
msgstr "会话"
#: terminal/forms.py:
27
#: terminal/forms.py:
44
msgid "Coco ssh listen port"
msgstr "SSH 监听端口"
#: terminal/forms.py:
28
#: terminal/forms.py:
45
msgid "Coco http/ws listen port"
msgstr "Http/Websocket 监听端口"
#: terminal/models.py:1
6
#: terminal/models.py:1
7
msgid "Remote Address"
msgstr "远端地址"
#: terminal/models.py:1
7
#: terminal/models.py:1
8
msgid "SSH Port"
msgstr "SSH端口"
#: terminal/models.py:1
8
#: terminal/models.py:1
9
msgid "HTTP Port"
msgstr "HTTP端口"
#: terminal/models.py:9
1
#: terminal/models.py:9
8
msgid "Session Online"
msgstr "在线会话"
#: terminal/models.py:9
2
#: terminal/models.py:9
9
msgid "CPU Usage"
msgstr "CPU使用"
#: terminal/models.py:
93
#: terminal/models.py:
100
msgid "Memory Used"
msgstr "内存使用"
#: terminal/models.py:
94
#: terminal/models.py:
101
msgid "Connections"
msgstr "连接数"
#: terminal/models.py:
95
#: terminal/models.py:
102
msgid "Threads"
msgstr "线程数"
#: terminal/models.py:
96
#: terminal/models.py:
103
msgid "Boot Time"
msgstr "运行时间"
#: terminal/models.py:1
19
terminal/templates/terminal/session_list.html:74
#: terminal/models.py:1
26
terminal/templates/terminal/session_list.html:74
#: terminal/templates/terminal/terminal_detail.html:47
msgid "Remote addr"
msgstr "远端地址"
#: terminal/models.py:12
1 terminal/templates/terminal/session_list.html:100
#: terminal/models.py:12
8 terminal/templates/terminal/session_list.html:102
msgid "Replay"
msgstr "回放"
#: terminal/models.py:12
2
terminal/templates/terminal/command_list.html:55
#: terminal/models.py:12
9
terminal/templates/terminal/command_list.html:55
#: terminal/templates/terminal/command_list.html:71
#: terminal/templates/terminal/session_detail.html:48
#: terminal/templates/terminal/session_list.html:76
msgid "Command"
msgstr "命令"
#: terminal/models.py:125
#: terminal/models.py:131
#, fuzzy
#| msgid "Date start"
msgid "Date last active"
msgstr "开始日期"
#: terminal/models.py:133
msgid "Date end"
msgstr "结束日期"
#: terminal/models.py:1
42
#: terminal/models.py:1
50
msgid "Args"
msgstr "参数"
...
...
@@ -1922,19 +1926,19 @@ msgstr "监控"
msgid "Terminate session"
msgstr "终止会话"
#: terminal/templates/terminal/session_list.html:7
8
#: terminal/templates/terminal/session_list.html:7
9
msgid "Duration"
msgstr "时长"
#: terminal/templates/terminal/session_list.html:10
2
#: terminal/templates/terminal/session_list.html:10
4
msgid "Monitor"
msgstr "监控"
#: terminal/templates/terminal/session_list.html:10
3
#: terminal/templates/terminal/session_list.html:10
5
msgid "Terminate"
msgstr "终断"
#: terminal/templates/terminal/session_list.html:1
19
#: terminal/templates/terminal/session_list.html:1
21
msgid "Terminate task send, waiting ..."
msgstr "终断任务已发送,请等待"
...
...
@@ -2129,7 +2133,7 @@ msgstr "Agent"
msgid "Date login"
msgstr "登录日期"
#: users/models/user.py:29 users/models/user.py:2
57
#: users/models/user.py:29 users/models/user.py:2
61
msgid "Administrator"
msgstr "管理员"
...
...
@@ -2168,7 +2172,7 @@ msgstr "二次验证"
msgid "Public key"
msgstr "ssh公钥"
#: users/models/user.py:26
0
#: users/models/user.py:26
4
msgid "Administrator is the super user of system"
msgstr "Administrator是初始的超级管理员"
...
...
@@ -2269,8 +2273,13 @@ msgstr "重置密码"
msgid "Password again"
msgstr "再次输入密码"
#: users/templates/users/reset_password.html:57
#: users/templates/users/user_profile.html:20
msgid "Setting"
msgstr "设置"
#: users/templates/users/user_create.html:4
#: users/templates/users/user_list.html:16 users/views/user.py:7
2
#: users/templates/users/user_list.html:16 users/views/user.py:7
4
msgid "Create user"
msgstr "创建用户"
...
...
@@ -2279,7 +2288,7 @@ msgid "Reset link will be generated and sent to the user. "
msgstr "生成重置密码连接,通过邮件发送给用户"
#: users/templates/users/user_detail.html:19
#: users/templates/users/user_granted_asset.html:18 users/views/user.py:1
48
#: users/templates/users/user_granted_asset.html:18 users/views/user.py:1
50
msgid "User detail"
msgstr "用户详情"
...
...
@@ -2399,8 +2408,8 @@ msgstr "用户删除失败"
msgid "OTP"
msgstr ""
#: users/templates/users/user_profile.html:100 users/views/user.py:17
7
#: users/views/user.py:2
29
#: users/templates/users/user_profile.html:100 users/views/user.py:17
9
#: users/views/user.py:2
33
msgid "User groups"
msgstr "用户组"
...
...
@@ -2420,7 +2429,7 @@ msgstr "指纹"
msgid "Update public key"
msgstr "更新密钥"
#: users/templates/users/user_update.html:4 users/views/user.py:9
1
#: users/templates/users/user_update.html:4 users/views/user.py:9
3
msgid "Update user"
msgstr "编辑用户"
...
...
@@ -2611,27 +2620,29 @@ msgstr "首次登陆"
msgid "Login log list"
msgstr "登录日志"
#: users/views/user.py:10
1
#: users/views/user.py:10
3
msgid "Bulk update user success"
msgstr "批量更新用户成功"
#: users/views/user.py:20
6
#: users/views/user.py:20
8
msgid "Invalid file."
msgstr "文件不合法"
#: users/views/user.py:30
1
#: users/views/user.py:30
5
msgid "User granted assets"
msgstr "用户授权资产"
#: users/views/user.py:33
1
#: users/views/user.py:33
5
msgid "Profile setting"
msgstr "个人信息设置"
#: users/views/user.py:3
49
#: users/views/user.py:3
53
msgid "Password update"
msgstr "密码更新"
#: users/views/user.py:37
1
#: users/views/user.py:37
5
msgid "Public key update"
msgstr "秘钥更新"
#~ msgid "Help"
#~ msgstr "帮助"
apps/jumpserver/views.py
View file @
f7ab1395
...
...
@@ -45,7 +45,8 @@ class IndexView(LoginRequiredMixin, TemplateView):
return
self
.
session_week
.
values
(
'user'
)
.
distinct
()
.
count
()
def
get_week_login_asset_count
(
self
):
return
self
.
session_week
.
values
(
'asset'
)
.
distinct
()
.
count
()
return
self
.
session_week
.
count
()
# return self.session_week.values('asset').distinct().count()
def
get_month_day_metrics
(
self
):
month_str
=
[
d
.
strftime
(
'
%
m-
%
d'
)
for
d
in
self
.
session_month_dates
]
or
[
'0'
]
...
...
apps/perms/serializers.py
View file @
f7ab1395
...
...
@@ -12,7 +12,7 @@ class AssetPermissionCreateUpdateSerializer(serializers.ModelSerializer):
class
Meta
:
model
=
NodePermission
fields
=
[
'node'
,
'user_group'
,
'system_user'
,
'
id'
,
'
node'
,
'user_group'
,
'system_user'
,
'is_active'
,
'date_expired'
]
...
...
apps/templates/_header_bar.html
View file @
f7ab1395
...
...
@@ -15,7 +15,12 @@
{#
</li>
#}
<li
class=
"dropdown"
>
<a
class=
"dropdown-toggle count-info"
data-toggle=
"dropdown"
href=
"#"
>
<span
class=
"m-r-sm text-muted welcome-message"
>
{% trans 'Help' %}
</span>
<span
class=
"m-r-sm text-muted welcome-message"
>
{% trans 'Supports' %}
</span>
</a>
</li>
<li
class=
"dropdown"
>
<a
class=
"count-info"
href=
"http://jumpserver.readthedocs.io/zh/docs/_build/html/"
>
<span
class=
"m-r-sm text-muted welcome-message"
>
{% trans 'Docs' %}
</span>
</a>
</li>
<li
class=
"dropdown"
>
...
...
apps/templates/index.html
View file @
f7ab1395
...
...
@@ -57,7 +57,7 @@
<div
class=
"row"
>
<div
class=
"col-sm-2 border-bottom white-bg dashboard-header"
style=
"margin-left:15px;height: 346px"
>
<h2>
活跃用户TOP5
</h2>
<small>
过去一周共有
<span
class=
"text-info"
>
{{ user_visit_count_weekly }}
</span>
位用户登录
<span
class=
"text-success"
>
{{ asset_visit_count_weekly }}
</span>
次
服务器
.
</small>
<small>
过去一周共有
<span
class=
"text-info"
>
{{ user_visit_count_weekly }}
</span>
位用户登录
<span
class=
"text-success"
>
{{ asset_visit_count_weekly }}
</span>
次
资产
.
</small>
<ul
class=
"list-group clear-list m-t"
>
{% for data in user_visit_count_top_five %}
<li
class=
"list-group-item fist-item"
>
...
...
requirements/requirements.txt
View file @
f7ab1395
...
...
@@ -56,8 +56,8 @@ uritemplate==3.0.0
urllib3==1.22
vine==1.1.4
gunicorn==19.7.1
https://github.com/celery/django-celery-beat/zipball/master#egg=django-celery-beat
#django_celery_beat==1.1.0
#
https://github.com/celery/django-celery-beat/zipball/master#egg=django-celery-beat
django_celery_beat==1.1.1
ephem==3.7.6.0
python-gssapi==0.6.4
jms-es-sdk
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment