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
579e74dd
Commit
579e74dd
authored
Jan 23, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复一些bug
parent
cad07434
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
81 additions
and
77 deletions
+81
-77
api.py
apps/assets/api.py
+1
-1
hands.py
apps/assets/hands.py
+1
-1
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+62
-57
jumpserver.css
apps/static/css/jumpserver.css
+1
-1
_footer.html
apps/templates/_footer.html
+2
-1
flash_message_standalone.html
apps/templates/flash_message_standalone.html
+1
-1
index.html
apps/templates/index.html
+0
-3
hands.py
apps/users/hands.py
+1
-1
forgot_password.html
apps/users/templates/users/forgot_password.html
+1
-1
login.html
apps/users/templates/users/login.html
+1
-1
reset_password.html
apps/users/templates/users/reset_password.html
+1
-1
user_detail.html
apps/users/templates/users/user_detail.html
+7
-6
user_list.html
apps/users/templates/users/user_list.html
+1
-1
login.py
apps/users/views/login.py
+1
-1
No files found.
apps/assets/api.py
View file @
579e74dd
# ~*~ coding: utf-8 ~*~
# ~*~ coding: utf-8 ~*~
# Copyright (C) 2014-201
7
Beijing DuiZhan Technology Co.,Ltd. All Rights Reserved.
# Copyright (C) 2014-201
8
Beijing DuiZhan Technology Co.,Ltd. All Rights Reserved.
#
#
# Licensed under the GNU General Public License v2.0 (the "License");
# Licensed under the GNU General Public License v2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
apps/assets/hands.py
View file @
579e74dd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
Other module of this app shouldn't connect with other app.
Other module of this app shouldn't connect with other app.
:copyright: (c) 2014-201
7
by Jumpserver Team.
:copyright: (c) 2014-201
8
by Jumpserver Team.
:license: GPL v2, see LICENSE for more details.
:license: GPL v2, see LICENSE for more details.
"""
"""
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
579e74dd
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
579e74dd
...
@@ -8,7 +8,7 @@ msgid ""
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-2
2 11:04
+0800\n"
"POT-Creation-Date: 2018-01-2
3 11:56
+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
...
@@ -66,7 +66,7 @@ msgstr "端口"
...
@@ -66,7 +66,7 @@ msgstr "端口"
#: assets/templates/assets/system_user_list.html:26 perms/models.py:17
#: assets/templates/assets/system_user_list.html:26 perms/models.py:17
#: perms/templates/perms/asset_permission_create_update.html:40
#: perms/templates/perms/asset_permission_create_update.html:40
#: perms/templates/perms/asset_permission_list.html:28 templates/_nav.html:22
#: perms/templates/perms/asset_permission_list.html:28 templates/_nav.html:22
#: terminal/backends/command/models.py:11 terminal/models.py:1
24
#: terminal/backends/command/models.py:11 terminal/models.py:1
16
#: terminal/templates/terminal/command_list.html:40
#: terminal/templates/terminal/command_list.html:40
#: terminal/templates/terminal/command_list.html:73
#: terminal/templates/terminal/command_list.html:73
#: terminal/templates/terminal/session_list.html:41
#: terminal/templates/terminal/session_list.html:41
...
@@ -106,8 +106,8 @@ msgstr "选择的系统用户将会在该集群资产上创建"
...
@@ -106,8 +106,8 @@ msgstr "选择的系统用户将会在该集群资产上创建"
#: perms/templates/perms/asset_permission_create_update.html:33
#: perms/templates/perms/asset_permission_create_update.html:33
#: perms/templates/perms/asset_permission_detail.html:62
#: perms/templates/perms/asset_permission_detail.html:62
#: perms/templates/perms/asset_permission_list.html:25
#: perms/templates/perms/asset_permission_list.html:25
#: perms/templates/perms/asset_permission_user.html:54 terminal/models.py:
23
#: perms/templates/perms/asset_permission_user.html:54 terminal/models.py:
15
#: terminal/models.py:14
9
terminal/templates/terminal/terminal_detail.html:43
#: terminal/models.py:14
1
terminal/templates/terminal/terminal_detail.html:43
#: terminal/templates/terminal/terminal_list.html:29 users/models/group.py:14
#: 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/models/user.py:35 users/templates/users/_select_user_modal.html:13
#: users/templates/users/user_detail.html:62
#: users/templates/users/user_detail.html:62
...
@@ -403,7 +403,7 @@ msgstr "创建日期"
...
@@ -403,7 +403,7 @@ msgstr "创建日期"
#: assets/templates/assets/system_user_detail.html:100
#: assets/templates/assets/system_user_detail.html:100
#: assets/templates/assets/system_user_list.html:30 common/models.py:30
#: assets/templates/assets/system_user_list.html:30 common/models.py:30
#: ops/models.py:37 perms/models.py:24
#: ops/models.py:37 perms/models.py:24
#: perms/templates/perms/asset_permission_detail.html:98 terminal/models.py:
33
#: perms/templates/perms/asset_permission_detail.html:98 terminal/models.py:
25
#: terminal/templates/terminal/terminal_detail.html:63 users/models/group.py:15
#: terminal/templates/terminal/terminal_detail.html:63 users/models/group.py:15
#: users/models/user.py:47 users/templates/users/user_detail.html:110
#: users/models/user.py:47 users/templates/users/user_detail.html:110
#: users/templates/users/user_group_detail.html:67
#: users/templates/users/user_group_detail.html:67
...
@@ -495,7 +495,7 @@ msgstr "Shell"
...
@@ -495,7 +495,7 @@ msgstr "Shell"
#: assets/models/user.py:269 perms/models.py:19
#: assets/models/user.py:269 perms/models.py:19
#: perms/templates/perms/asset_permission_detail.html:136
#: perms/templates/perms/asset_permission_detail.html:136
#: perms/templates/perms/asset_permission_list.html:30 templates/_nav.html:26
#: perms/templates/perms/asset_permission_list.html:30 templates/_nav.html:26
#: terminal/backends/command/models.py:12 terminal/models.py:1
25
#: terminal/backends/command/models.py:12 terminal/models.py:1
17
#: terminal/templates/terminal/command_list.html:48
#: terminal/templates/terminal/command_list.html:48
#: terminal/templates/terminal/command_list.html:74
#: terminal/templates/terminal/command_list.html:74
#: terminal/templates/terminal/session_list.html:49
#: terminal/templates/terminal/session_list.html:49
...
@@ -603,24 +603,20 @@ msgid "Import asset"
...
@@ -603,24 +603,20 @@ msgid "Import asset"
msgstr "导入资产"
msgstr "导入资产"
#: assets/templates/assets/_asset_import_modal.html:9
#: assets/templates/assets/_asset_import_modal.html:9
#: common/templates/common/_add_terminal_command_storage_modal.html:9
#: users/templates/users/_user_import_modal.html:10
#: users/templates/users/_user_import_modal.html:10
msgid "Template"
msgid "Template"
msgstr "模板"
msgstr "模板"
#: assets/templates/assets/_asset_import_modal.html:10
#: assets/templates/assets/_asset_import_modal.html:10
#: common/templates/common/_add_terminal_command_storage_modal.html:10
#: users/templates/users/_user_import_modal.html:11
#: users/templates/users/_user_import_modal.html:11
msgid "Download"
msgid "Download"
msgstr "下载"
msgstr "下载"
#: assets/templates/assets/_asset_import_modal.html:13
#: assets/templates/assets/_asset_import_modal.html:13
#: common/templates/common/_add_terminal_command_storage_modal.html:13
msgid "Asset csv file"
msgid "Asset csv file"
msgstr "资产csv文件"
msgstr "资产csv文件"
#: assets/templates/assets/_asset_import_modal.html:16
#: assets/templates/assets/_asset_import_modal.html:16
#: common/templates/common/_add_terminal_command_storage_modal.html:16
msgid "If set id, will use this id update asset existed"
msgid "If set id, will use this id update asset existed"
msgstr "如果设置了id,则会使用该行信息更新该id的资产"
msgstr "如果设置了id,则会使用该行信息更新该id的资产"
...
@@ -672,7 +668,7 @@ msgstr "其它"
...
@@ -672,7 +668,7 @@ msgstr "其它"
#: common/templates/common/terminal_setting.html:82
#: common/templates/common/terminal_setting.html:82
#: perms/templates/perms/asset_permission_create_update.html:67
#: perms/templates/perms/asset_permission_create_update.html:67
#: terminal/templates/terminal/terminal_update.html:46
#: terminal/templates/terminal/terminal_update.html:46
#: users/templates/users/_user.html:4
9
#: users/templates/users/_user.html:4
3
#: users/templates/users/user_bulk_update.html:23
#: users/templates/users/user_bulk_update.html:23
#: users/templates/users/user_password_update.html:58
#: users/templates/users/user_password_update.html:58
#: users/templates/users/user_profile.html:139
#: users/templates/users/user_profile.html:139
...
@@ -696,7 +692,7 @@ msgstr "重置"
...
@@ -696,7 +692,7 @@ msgstr "重置"
#: common/templates/common/terminal_setting.html:83
#: common/templates/common/terminal_setting.html:83
#: perms/templates/perms/asset_permission_create_update.html:68
#: perms/templates/perms/asset_permission_create_update.html:68
#: terminal/templates/terminal/terminal_update.html:47
#: terminal/templates/terminal/terminal_update.html:47
#: users/templates/users/_user.html:
50
#: users/templates/users/_user.html:
44
#: users/templates/users/first_login.html:62
#: users/templates/users/first_login.html:62
#: users/templates/users/forgot_password.html:44
#: users/templates/users/forgot_password.html:44
#: users/templates/users/user_bulk_update.html:24
#: users/templates/users/user_bulk_update.html:24
...
@@ -1299,6 +1295,16 @@ msgstr "<b>%(name)s</b> 创建成功"
...
@@ -1299,6 +1295,16 @@ msgstr "<b>%(name)s</b> 创建成功"
msgid "<b>%(name)s</b> was updated successfully"
msgid "<b>%(name)s</b> was updated successfully"
msgstr "<b>%(name)s</b> 更新成功"
msgstr "<b>%(name)s</b> 更新成功"
#: common/fields.py:25
#, fuzzy
#| msgid "Not a valid ssh public key"
msgid "Not a valid json"
msgstr "ssh密钥不合法"
#: common/fields.py:27
msgid "Not a string type"
msgstr ""
#: common/forms.py:70
#: common/forms.py:70
msgid "Current SITE URL"
msgid "Current SITE URL"
msgstr "当前站点URL"
msgstr "当前站点URL"
...
@@ -1392,7 +1398,7 @@ msgid "Public key auth"
...
@@ -1392,7 +1398,7 @@ msgid "Public key auth"
msgstr "秘钥认证"
msgstr "秘钥认证"
#: common/forms.py:155 common/templates/common/terminal_setting.html:58
#: common/forms.py:155 common/templates/common/terminal_setting.html:58
#: terminal/
models.py:27
#: terminal/
forms.py:21 terminal/models.py:19
msgid "Command storage"
msgid "Command storage"
msgstr "命令存储"
msgstr "命令存储"
...
@@ -1418,10 +1424,6 @@ msgstr "值"
...
@@ -1418,10 +1424,6 @@ msgstr "值"
msgid "Enabled"
msgid "Enabled"
msgstr "启用"
msgstr "启用"
#: common/templates/common/_add_terminal_command_storage_modal.html:4
msgid "Add command storage"
msgstr "添加命令存储"
#: common/templates/common/basic_setting.html:15
#: common/templates/common/basic_setting.html:15
#: common/templates/common/email_setting.html:15
#: common/templates/common/email_setting.html:15
#: common/templates/common/ldap_setting.html:15
#: common/templates/common/ldap_setting.html:15
...
@@ -1456,10 +1458,6 @@ msgstr "终端设置"
...
@@ -1456,10 +1458,6 @@ msgstr "终端设置"
msgid "Test connection"
msgid "Test connection"
msgstr "测试连接"
msgstr "测试连接"
#: common/templates/common/terminal_setting.html:77 terminal/models.py:28
msgid "Replay storage"
msgstr "录像存储"
#: common/views.py:20 common/views.py:46 common/views.py:72 common/views.py:101
#: common/views.py:20 common/views.py:46 common/views.py:72 common/views.py:101
#: templates/_nav.html:69
#: templates/_nav.html:69
msgid "Settings"
msgid "Settings"
...
@@ -1616,7 +1614,7 @@ msgstr "执行历史"
...
@@ -1616,7 +1614,7 @@ msgstr "执行历史"
#: ops/templates/ops/adhoc_history.html:52
#: ops/templates/ops/adhoc_history.html:52
#: ops/templates/ops/adhoc_history_detail.html:58
#: ops/templates/ops/adhoc_history_detail.html:58
#: ops/templates/ops/task_history.html:55 terminal/models.py:1
32
#: ops/templates/ops/task_history.html:55 terminal/models.py:1
24
#: terminal/templates/terminal/session_list.html:77
#: terminal/templates/terminal/session_list.html:77
msgid "Date start"
msgid "Date start"
msgstr "开始日期"
msgstr "开始日期"
...
@@ -1740,7 +1738,7 @@ msgstr "选择用户"
...
@@ -1740,7 +1738,7 @@ msgstr "选择用户"
#: perms/forms.py:18 perms/models.py:15
#: perms/forms.py:18 perms/models.py:15
#: perms/templates/perms/asset_permission_create_update.html:36
#: perms/templates/perms/asset_permission_create_update.html:36
#: perms/templates/perms/asset_permission_list.html:26 templates/_nav.html:12
#: perms/templates/perms/asset_permission_list.html:26 templates/_nav.html:12
#: terminal/backends/command/models.py:10 terminal/models.py:1
23
#: terminal/backends/command/models.py:10 terminal/models.py:1
15
#: terminal/templates/terminal/command_list.html:32
#: terminal/templates/terminal/command_list.html:32
#: terminal/templates/terminal/command_list.html:72
#: terminal/templates/terminal/command_list.html:72
#: terminal/templates/terminal/session_list.html:33
#: terminal/templates/terminal/session_list.html:33
...
@@ -1889,16 +1887,12 @@ msgstr "资产授权包含用户"
...
@@ -1889,16 +1887,12 @@ msgstr "资产授权包含用户"
msgid "Asset permission asset list"
msgid "Asset permission asset list"
msgstr "资产组授权包含资产"
msgstr "资产组授权包含资产"
#: templates/_header_bar.html:14
msgid "Welcome to use Jumpserver system"
msgstr "欢迎使用Jumpserver开源跳板机系统"
#: templates/_header_bar.html:18
#: templates/_header_bar.html:18
msgid "Help"
msgid "Help"
msgstr "帮助"
msgstr "帮助"
#: templates/_header_bar.html:3
3
templates/_nav_user.html:9
#: templates/_header_bar.html:3
2
templates/_nav_user.html:9
#: users/templates/users/_user.html:
42
#: users/templates/users/_user.html:
36
#: users/templates/users/user_password_update.html:37
#: users/templates/users/user_password_update.html:37
#: users/templates/users/user_profile.html:17
#: users/templates/users/user_profile.html:17
#: users/templates/users/user_profile_update.html:37
#: users/templates/users/user_profile_update.html:37
...
@@ -1907,24 +1901,24 @@ msgstr "帮助"
...
@@ -1907,24 +1901,24 @@ msgstr "帮助"
msgid "Profile"
msgid "Profile"
msgstr "个人信息"
msgstr "个人信息"
#: templates/_header_bar.html:3
7
#: templates/_header_bar.html:3
6
msgid "Admin page"
msgid "Admin page"
msgstr "管理页面"
msgstr "管理页面"
#: templates/_header_bar.html:3
9
#: templates/_header_bar.html:3
8
msgid "User page"
msgid "User page"
msgstr "用户页面"
msgstr "用户页面"
#: templates/_header_bar.html:4
2
#: templates/_header_bar.html:4
1
msgid "Logout"
msgid "Logout"
msgstr "注销登录"
msgstr "注销登录"
#: templates/_header_bar.html:4
6
users/templates/users/login.html:42
#: templates/_header_bar.html:4
5
users/templates/users/login.html:42
#: users/templates/users/login.html:61
#: users/templates/users/login.html:61
msgid "Login"
msgid "Login"
msgstr "登录"
msgstr "登录"
#: templates/_header_bar.html:5
9
templates/_nav.html:4
#: templates/_header_bar.html:5
8
templates/_nav.html:4
msgid "Dashboard"
msgid "Dashboard"
msgstr "仪表盘"
msgstr "仪表盘"
...
@@ -1999,7 +1993,7 @@ msgstr "在线会话"
...
@@ -1999,7 +1993,7 @@ msgstr "在线会话"
msgid "Session offline"
msgid "Session offline"
msgstr "离线会话"
msgstr "离线会话"
#: templates/_nav.html:53 terminal/models.py:1
30
#: templates/_nav.html:53 terminal/models.py:1
22
#: terminal/templates/terminal/command_list.html:55
#: terminal/templates/terminal/command_list.html:55
#: terminal/templates/terminal/command_list.html:71
#: terminal/templates/terminal/command_list.html:71
#: terminal/templates/terminal/session_detail.html:48
#: terminal/templates/terminal/session_detail.html:48
...
@@ -2040,64 +2034,68 @@ msgstr "输出"
...
@@ -2040,64 +2034,68 @@ msgstr "输出"
msgid "Session"
msgid "Session"
msgstr "会话"
msgstr "会话"
#: terminal/forms.py:
15
#: terminal/forms.py:
27
msgid "Coco ssh listen port"
msgid "Coco ssh listen port"
msgstr "SSH 监听端口"
msgstr "SSH 监听端口"
#: terminal/forms.py:
16
#: terminal/forms.py:
28
msgid "Coco http/ws listen port"
msgid "Coco http/ws listen port"
msgstr "Http/Websocket 监听端口"
msgstr "Http/Websocket 监听端口"
#: terminal/models.py:
24
#: terminal/models.py:
16
msgid "Remote Address"
msgid "Remote Address"
msgstr "远端地址"
msgstr "远端地址"
#: terminal/models.py:
25
#: terminal/models.py:
17
msgid "SSH Port"
msgid "SSH Port"
msgstr "SSH端口"
msgstr "SSH端口"
#: terminal/models.py:
26
#: terminal/models.py:
18
msgid "HTTP Port"
msgid "HTTP Port"
msgstr "HTTP端口"
msgstr "HTTP端口"
#: terminal/models.py:99
#: terminal/models.py:20
msgid "Replay storage"
msgstr "录像存储"
#: terminal/models.py:91
msgid "Session Online"
msgid "Session Online"
msgstr "在线会话"
msgstr "在线会话"
#: terminal/models.py:
100
#: terminal/models.py:
92
msgid "CPU Usage"
msgid "CPU Usage"
msgstr "CPU使用"
msgstr "CPU使用"
#: terminal/models.py:
101
#: terminal/models.py:
93
msgid "Memory Used"
msgid "Memory Used"
msgstr "内存使用"
msgstr "内存使用"
#: terminal/models.py:
102
#: terminal/models.py:
94
msgid "Connections"
msgid "Connections"
msgstr "连接数"
msgstr "连接数"
#: terminal/models.py:
103
#: terminal/models.py:
95
msgid "Threads"
msgid "Threads"
msgstr "线程数"
msgstr "线程数"
#: terminal/models.py:
104
#: terminal/models.py:
96
msgid "Boot Time"
msgid "Boot Time"
msgstr "运行时间"
msgstr "运行时间"
#: terminal/models.py:1
27
terminal/templates/terminal/session_list.html:74
#: terminal/models.py:1
19
terminal/templates/terminal/session_list.html:74
#: terminal/templates/terminal/terminal_detail.html:47
#: terminal/templates/terminal/terminal_detail.html:47
msgid "Remote addr"
msgid "Remote addr"
msgstr "远端地址"
msgstr "远端地址"
#: terminal/models.py:12
9
terminal/templates/terminal/session_list.html:100
#: terminal/models.py:12
1
terminal/templates/terminal/session_list.html:100
msgid "Replay"
msgid "Replay"
msgstr "回放"
msgstr "回放"
#: terminal/models.py:1
33
#: terminal/models.py:1
25
msgid "Date end"
msgid "Date end"
msgstr "结束日期"
msgstr "结束日期"
#: terminal/models.py:1
50
#: terminal/models.py:1
42
msgid "Args"
msgid "Args"
msgstr "参数"
msgstr "参数"
...
@@ -2451,7 +2449,7 @@ msgstr "忘记密码"
...
@@ -2451,7 +2449,7 @@ msgstr "忘记密码"
#: users/templates/users/forgot_password.html:33
#: users/templates/users/forgot_password.html:33
msgid "Input your email, that will send a mail to your"
msgid "Input your email, that will send a mail to your"
msgstr "输入您的邮箱, 将会发一封重置
短信
邮件到您的邮箱中"
msgstr "输入您的邮箱, 将会发一封重置邮件到您的邮箱中"
#: users/templates/users/login.html:47
#: users/templates/users/login.html:47
msgid "Captcha invalid"
msgid "Captcha invalid"
...
@@ -2520,10 +2518,8 @@ msgid "An e-mail has been sent to the user\\'s mailbox."
...
@@ -2520,10 +2518,8 @@ msgid "An e-mail has been sent to the user\\'s mailbox."
msgstr "已发送邮件到用户邮箱"
msgstr "已发送邮件到用户邮箱"
#: users/templates/users/user_detail.html:334
#: users/templates/users/user_detail.html:334
msgid ""
msgid "This will reset the user password and send a reset mail"
"This will reset the user's password. A password-reset email will be sent to "
msgstr "将失效用户当前密码,并发送重设密码邮件到用户邮箱"
"the user\\'s mailbox."
msgstr "重设密码邮件将会发送到用户邮箱"
#: users/templates/users/user_detail.html:348
#: users/templates/users/user_detail.html:348
msgid ""
msgid ""
...
@@ -2537,8 +2533,8 @@ msgid "Reset SSH public key"
...
@@ -2537,8 +2533,8 @@ msgid "Reset SSH public key"
msgstr "重置SSH密钥"
msgstr "重置SSH密钥"
#: users/templates/users/user_detail.html:359
#: users/templates/users/user_detail.html:359
msgid "This will reset the user
\\
"
msgid "This will reset the user
public key and send a reset mail
"
msgstr "
重置
"
msgstr "
将会失效用户当前秘钥,并发送重置邮件到用户邮箱
"
#: users/templates/users/user_detail.html:376
#: users/templates/users/user_detail.html:376
#: users/templates/users/user_profile.html:170
#: users/templates/users/user_profile.html:170
...
@@ -2860,6 +2856,15 @@ msgstr "密码更新"
...
@@ -2860,6 +2856,15 @@ msgstr "密码更新"
msgid "Public key update"
msgid "Public key update"
msgstr "秘钥更新"
msgstr "秘钥更新"
#~ msgid "Add command storage"
#~ msgstr "添加命令存储"
#~ msgid "Welcome to use Jumpserver system"
#~ msgstr "欢迎使用Jumpserver开源跳板机系统"
#~ msgid "This will reset the user\\"
#~ msgstr "重置"
#~ msgid "Enable LDAP Auth"
#~ msgid "Enable LDAP Auth"
#~ msgstr "LDAP认证"
#~ msgstr "LDAP认证"
...
...
apps/static/css/jumpserver.css
View file @
579e74dd
...
@@ -303,7 +303,7 @@ div.dataTables_wrapper div.dataTables_filter {
...
@@ -303,7 +303,7 @@ div.dataTables_wrapper div.dataTables_filter {
.profile-element
div
:first-child
{
.profile-element
div
:first-child
{
line-height
:
60px
;
line-height
:
60px
;
width
:
70px
;
/*width: 70px;*/
float
:
left
;
float
:
left
;
text-align
:
center
;
text-align
:
center
;
}
}
...
...
apps/templates/_footer.html
View file @
579e74dd
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
<img
style=
"display: none"
src=
"http://www.jumpserver.org/img/evaluate_avatar1.jpg"
>
<img
style=
"display: none"
src=
"http://www.jumpserver.org/img/evaluate_avatar1.jpg"
>
</div>
</div>
<div>
<div>
<strong>
Copyright
</strong>
北京堆栈科技有限公司
©
2014-201
7
<strong>
Copyright
</strong>
北京堆栈科技有限公司
©
2014-201
8
</div>
</div>
</div>
</div>
\ No newline at end of file
apps/templates/flash_message_standalone.html
View file @
579e74dd
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
Copyright Jumpserver.org
Copyright Jumpserver.org
</div>
</div>
<div
class=
"col-md-6 text-right"
>
<div
class=
"col-md-6 text-right"
>
<small>
2014-201
7
</small>
<small>
2014-201
8
</small>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
apps/templates/index.html
View file @
579e74dd
...
@@ -163,9 +163,6 @@
...
@@ -163,9 +163,6 @@
{% if last_login_ten %}
{% if last_login_ten %}
{% for login in last_login_ten %}
{% for login in last_login_ten %}
<div
class=
"feed-element"
>
<div
class=
"feed-element"
>
<a
href=
"#"
class=
"pull-left"
>
<img
alt=
"image"
class=
"img-circle"
src=
"/static/img/root.png"
>
</a>
<div
class=
"media-body "
>
<div
class=
"media-body "
>
{% ifequal login.is_finished 0 %}
{% ifequal login.is_finished 0 %}
<small
class=
"pull-right text-navy"
>
{{ login.date_start|timesince }} ago
</small>
<small
class=
"pull-right text-navy"
>
{{ login.date_start|timesince }} ago
</small>
...
...
apps/users/hands.py
View file @
579e74dd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
Other module of this app shouldn't connect with other app.
Other module of this app shouldn't connect with other app.
:copyright: (c) 2014-201
7
by Jumpserver Team.
:copyright: (c) 2014-201
8
by Jumpserver Team.
:license: GPL v2, see LICENSE for more details.
:license: GPL v2, see LICENSE for more details.
"""
"""
...
...
apps/users/templates/users/forgot_password.html
View file @
579e74dd
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
Copyright Jumpserver.org
Copyright Jumpserver.org
</div>
</div>
<div
class=
"col-md-6 text-right"
>
<div
class=
"col-md-6 text-right"
>
<small>
© 2014-201
7
</small>
<small>
© 2014-201
8
</small>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
apps/users/templates/users/login.html
View file @
579e74dd
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
Copyright Jumpserver.org
Copyright Jumpserver.org
</div>
</div>
<div
class=
"col-md-6 text-right"
>
<div
class=
"col-md-6 text-right"
>
<small>
© 2014-201
7
</small>
<small>
© 2014-201
8
</small>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
apps/users/templates/users/reset_password.html
View file @
579e74dd
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
Copyright Jumpserver.org
Copyright Jumpserver.org
</div>
</div>
<div
class=
"col-md-6 text-right"
>
<div
class=
"col-md-6 text-right"
>
<small>
© 2014-201
7
</small>
<small>
© 2014-201
8
</small>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
apps/users/templates/users/user_detail.html
View file @
579e74dd
...
@@ -24,8 +24,9 @@
...
@@ -24,8 +24,9 @@
<li
class=
"pull-right"
>
<li
class=
"pull-right"
>
<a
class=
"btn btn-outline btn-default"
href=
"{% url 'users:user-update' pk=user_object.id %}"
><i
class=
"fa fa-edit"
></i>
{% trans 'Update' %}
</a>
<a
class=
"btn btn-outline btn-default"
href=
"{% url 'users:user-update' pk=user_object.id %}"
><i
class=
"fa fa-edit"
></i>
{% trans 'Update' %}
</a>
</li>
</li>
<li
class=
"pull-right"
>
<li
class=
"pull-right"
>
<a
class=
"btn btn-outline
btn-danger btn-delete-user
"
>
<a
class=
"btn btn-outline
{% if request.user != user_object and user_object.username != "
admin
"
%}
btn-danger
btn-delete-user
{%
else
%}
disabled
{%
endif
%}
"
>
<i
class=
"fa fa-trash-o"
></i>
{% trans 'Delete' %}
<i
class=
"fa fa-trash-o"
></i>
{% trans 'Delete' %}
</a>
</a>
</li>
</li>
...
@@ -128,7 +129,7 @@
...
@@ -128,7 +129,7 @@
<td><span
class=
"pull-right"
>
<td><span
class=
"pull-right"
>
<div
class=
"switch"
>
<div
class=
"switch"
>
<div
class=
"onoffswitch"
>
<div
class=
"onoffswitch"
>
<input
type=
"checkbox"
{%
if
user_object
.
is_active
%}
checked
{%
endif
%}
class=
"onoffswitch-checkbox
"
id=
"is_active"
>
<input
type=
"checkbox"
{%
if
user_object
.
is_active
%}
checked
{%
endif
%}
{%
if
request
.
user =
=
user_object
%}
disabled=
"disabled"
{%
endif
%}
class=
"onoffswitch-checkbox disabled
"
id=
"is_active"
>
<label
class=
"onoffswitch-label"
for=
"is_active"
>
<label
class=
"onoffswitch-label"
for=
"is_active"
>
<span
class=
"onoffswitch-inner"
></span>
<span
class=
"onoffswitch-inner"
></span>
<span
class=
"onoffswitch-switch"
></span>
<span
class=
"onoffswitch-switch"
></span>
...
@@ -156,7 +157,7 @@
...
@@ -156,7 +157,7 @@
<td>
{% trans 'Send reset password mail' %}:
</td>
<td>
{% trans 'Send reset password mail' %}:
</td>
<td>
<td>
<span
class=
"pull-right"
>
<span
class=
"pull-right"
>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
id=
"btn-reset-password"
style=
"width: 54px"
>
{% trans 'Send' %}
</button>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
{%
if
request
.
user =
=
user_object
%}
disabled=
"disabled"
{%
endif
%}
id=
"btn-reset-password"
style=
"width: 54px"
>
{% trans 'Send' %}
</button>
</span>
</span>
</td>
</td>
</tr>
</tr>
...
@@ -164,7 +165,7 @@
...
@@ -164,7 +165,7 @@
<td>
{% trans 'Send reset ssh key mail' %}:
</td>
<td>
{% trans 'Send reset ssh key mail' %}:
</td>
<td>
<td>
<span
class=
"pull-right"
>
<span
class=
"pull-right"
>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
id=
"btn-reset-pk"
style=
"width: 54px;"
>
{% trans 'Send' %}
</button>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
{%
if
request
.
user =
=
user_object
%}
disabled=
"disabled"
{%
endif
%}
id=
"btn-reset-pk"
style=
"width: 54px;"
>
{% trans 'Send' %}
</button>
</span>
</span>
</td>
</td>
</tr>
</tr>
...
@@ -331,7 +332,7 @@ $(document).ready(function() {
...
@@ -331,7 +332,7 @@ $(document).ready(function() {
}
}
swal({
swal({
title: "{% trans '
Are
you
sure
?
' %}",
title: "{% trans '
Are
you
sure
?
' %}",
text: "{% trans "This will reset the user
'
s
password
.
A
password
-
reset
email
will
be
sent
to
the
user
\
's mailbox."
%}",
text: "{% trans "This will reset the user
password and send a reset mail"
%}",
type: "warning",
type: "warning",
showCancelButton: true,
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonColor: "#DD6B55",
...
@@ -356,7 +357,7 @@ $(document).ready(function() {
...
@@ -356,7 +357,7 @@ $(document).ready(function() {
}
}
swal({
swal({
title: "{% trans '
Are
you
sure
?
' %}",
title: "{% trans '
Are
you
sure
?
' %}",
text: "{% trans '
This
will
reset
the
user
\
's public key.
'
%
}
",
text: "{% trans '
This
will
reset
the
user
public
key
and
send
a
reset
mail
' %}",
type: "warning",
type: "warning",
showCancelButton: true,
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonColor: "#DD6B55",
...
...
apps/users/templates/users/user_list.html
View file @
579e74dd
...
@@ -76,7 +76,7 @@ function initTable() {
...
@@ -76,7 +76,7 @@ function initTable() {
var
update_btn
=
'<a href="{% url "users:user-update" pk=DEFAULT_PK %}" class="btn btn-xs btn-info">{% trans "Update" %}</a>'
.
replace
(
'00000000-0000-0000-0000-000000000000'
,
cellData
);
var
update_btn
=
'<a href="{% url "users:user-update" pk=DEFAULT_PK %}" class="btn btn-xs btn-info">{% trans "Update" %}</a>'
.
replace
(
'00000000-0000-0000-0000-000000000000'
,
cellData
);
var
del_btn
=
""
;
var
del_btn
=
""
;
if
(
rowData
.
id
===
1
||
rowData
.
username
===
"admin"
||
rowData
.
username
===
"{{ user.username }}"
)
{
if
(
rowData
.
id
===
1
||
rowData
.
username
===
"admin"
||
rowData
.
username
===
"{{
request.
user.username }}"
)
{
del_btn
=
'<a class="btn btn-xs btn-danger m-l-xs" disabled>{% trans "Delete" %}</a>'
del_btn
=
'<a class="btn btn-xs btn-danger m-l-xs" disabled>{% trans "Delete" %}</a>'
.
replace
(
'{{ DEFAULT_PK }}'
,
cellData
)
.
replace
(
'{{ DEFAULT_PK }}'
,
cellData
)
.
replace
(
'99991938'
,
rowData
.
name
);
.
replace
(
'99991938'
,
rowData
.
name
);
...
...
apps/users/views/login.py
View file @
579e74dd
...
@@ -54,7 +54,7 @@ class UserLoginView(FormView):
...
@@ -54,7 +54,7 @@ class UserLoginView(FormView):
return
HttpResponse
(
_
(
"Please enable cookies and try again."
))
return
HttpResponse
(
_
(
"Please enable cookies and try again."
))
auth_login
(
self
.
request
,
form
.
get_user
())
auth_login
(
self
.
request
,
form
.
get_user
())
x_forwarded_for
=
self
.
request
.
META
.
get
(
'HTTP_X_FORWARDED_FOR'
,
''
)
.
split
(
','
)
x_forwarded_for
=
self
.
request
.
META
.
get
(
'HTTP_X_FORWARDED_FOR'
,
''
)
.
split
(
','
)
if
x_forwarded_for
:
if
x_forwarded_for
and
x_forwarded_for
[
0
]
:
login_ip
=
x_forwarded_for
[
0
]
login_ip
=
x_forwarded_for
[
0
]
else
:
else
:
login_ip
=
self
.
request
.
META
.
get
(
'REMOTE_ADDR'
,
''
)
login_ip
=
self
.
request
.
META
.
get
(
'REMOTE_ADDR'
,
''
)
...
...
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