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
435acafc
Commit
435acafc
authored
Jul 06, 2018
by
BaiJiangJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 在线会话,历史会话显示登录来源 Web/SSH Terminal
parent
86e4bc5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
36 deletions
+42
-36
django.mo
apps/i18n/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/i18n/zh/LC_MESSAGES/django.po
+40
-36
session_list.html
apps/terminal/templates/terminal/session_list.html
+2
-0
No files found.
apps/i18n/zh/LC_MESSAGES/django.mo
View file @
435acafc
No preview for this file type
apps/i18n/zh/LC_MESSAGES/django.po
View file @
435acafc
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-0
5 14:58
+0800\n"
"POT-Creation-Date: 2018-07-0
6 13:11
+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"
...
...
@@ -480,7 +480,7 @@ msgstr "手动登录"
#: assets/views/asset.py:197 assets/views/domain.py:29
#: assets/views/domain.py:45 assets/views/domain.py:61
#: assets/views/domain.py:74 assets/views/domain.py:98
#: assets/views/domain.py:126 assets/views/domain.py:1
50
#: assets/views/domain.py:126 assets/views/domain.py:1
45
#: assets/views/label.py:26 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
...
...
@@ -685,7 +685,7 @@ msgstr "重置"
#: common/templates/common/security_setting.html:71
#: common/templates/common/terminal_setting.html:108
#: perms/templates/perms/asset_permission_create_update.html:70
#: terminal/templates/terminal/session_list.html:12
4
#: terminal/templates/terminal/session_list.html:12
6
#: terminal/templates/terminal/terminal_update.html:48
#: users/templates/users/_user.html:47
#: users/templates/users/forgot_password.html:44
...
...
@@ -847,7 +847,7 @@ msgstr "比例"
#: ops/templates/ops/adhoc_history.html:59 ops/templates/ops/task_adhoc.html:64
#: ops/templates/ops/task_history.html:65 ops/templates/ops/task_list.html:42
#: perms/templates/perms/asset_permission_list.html:60
#: terminal/templates/terminal/session_list.html:8
0
#: terminal/templates/terminal/session_list.html:8
1
#: terminal/templates/terminal/terminal_list.html:36
#: users/templates/users/user_group_list.html:15
#: users/templates/users/user_list.html:29
...
...
@@ -1189,7 +1189,7 @@ msgstr "网域详情"
msgid "Domain gateway list"
msgstr "域网关列表"
#: assets/views/domain.py:1
51
#: assets/views/domain.py:1
46
msgid "Update gateway"
msgstr "创建网关"
...
...
@@ -1246,7 +1246,7 @@ msgstr "成功"
#: ops/templates/ops/adhoc_history_detail.html:61
#: ops/templates/ops/task_history.html:58 perms/models.py:36
#: perms/templates/perms/asset_permission_detail.html:86 terminal/models.py:137
#: terminal/templates/terminal/session_list.html:7
7
#: terminal/templates/terminal/session_list.html:7
8
msgid "Date start"
msgstr "开始日期"
...
...
@@ -1433,60 +1433,60 @@ msgid ""
"for all users, including administrators)"
msgstr "开启后,用户登录必须使用MFA二次认证(对所有用户有效,包括管理员)"
#: common/forms.py:18
6
#: common/forms.py:18
5
msgid "Limit the number of login failures"
msgstr "限制登录失败次数"
#: common/forms.py:19
3
#: common/forms.py:19
0
msgid "No logon interval"
msgstr "禁止登录时间间隔"
#: common/forms.py:19
5
#: common/forms.py:19
2
msgid ""
"Tip :(unit/minute) if the user has failed to log in for a limited number of "
"times, no login is allowed during this time interval."
msgstr ""
"提示:(单位 / 分钟)当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录."
#: common/forms.py:
201
#: common/forms.py:
198
msgid "Password minimum length"
msgstr "密码最小长度 "
#: common/forms.py:20
8
#: common/forms.py:20
5
msgid "Must contain capital letters"
msgstr "必须包含大写字母"
#: common/forms.py:2
10
#: common/forms.py:2
07
msgid ""
"After opening, the user password changes and resets must contain uppercase "
"letters"
msgstr "开启后,用户密码修改、重置必须包含大写字母"
#: common/forms.py:21
6
#: common/forms.py:21
3
msgid "Must contain lowercase letters"
msgstr "必须包含小写字母"
#: common/forms.py:21
7
#: common/forms.py:21
4
msgid ""
"After opening, the user password changes and resets must contain lowercase "
"letters"
msgstr "开启后,用户密码修改、重置必须包含小写字母"
#: common/forms.py:22
3
#: common/forms.py:22
0
msgid "Must contain numeric characters"
msgstr "必须包含数字字符"
#: common/forms.py:22
4
#: common/forms.py:22
1
msgid ""
"After opening, the user password changes and resets must contain numeric "
"characters"
msgstr "开启后,用户密码修改、重置必须包含数字字符"
#: common/forms.py:2
30
#: common/forms.py:2
27
msgid "Must contain special characters"
msgstr "必须包含特殊字符"
#: common/forms.py:2
31
#: common/forms.py:2
28
msgid ""
"After opening, the user password changes and resets must contain special "
"characters"
...
...
@@ -2177,14 +2177,14 @@ msgstr "线程数"
msgid "Boot Time"
msgstr "运行时间"
#: terminal/models.py:132 terminal/templates/terminal/session_list.html:10
2
#: terminal/models.py:132 terminal/templates/terminal/session_list.html:10
4
msgid "Replay"
msgstr "回放"
#: terminal/models.py:133 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:7
6
#: terminal/templates/terminal/session_list.html:7
7
msgid "Command"
msgstr "命令"
...
...
@@ -2235,24 +2235,28 @@ msgstr "监控"
msgid "Terminate session"
msgstr "终止会话"
#: terminal/templates/terminal/session_list.html:79
#: terminal/templates/terminal/session_list.html:76
msgid "Login from"
msgstr "登录来源"
#: terminal/templates/terminal/session_list.html:80
msgid "Duration"
msgstr "时长"
#: terminal/templates/terminal/session_list.html:10
4
#: terminal/templates/terminal/session_list.html:10
6
msgid "Monitor"
msgstr "监控"
#: terminal/templates/terminal/session_list.html:106
#: terminal/templates/terminal/session_list.html:108
#: terminal/templates/terminal/session_list.html:110
msgid "Terminate"
msgstr "终断"
#: terminal/templates/terminal/session_list.html:12
0
#: terminal/templates/terminal/session_list.html:12
2
msgid "Terminate selected"
msgstr "终断所选"
#: terminal/templates/terminal/session_list.html:14
0
#: terminal/templates/terminal/session_list.html:14
2
msgid "Terminate task send, waiting ..."
msgstr "终断任务已发送,请等待"
...
...
@@ -2322,7 +2326,7 @@ msgid ""
"You should use your ssh client tools connect terminal: {} <br /> <br />{}"
msgstr "你可以使用ssh客户端工具连接终端"
#: users/api.py:2
10
users/templates/users/login.html:50
#: users/api.py:2
08
users/templates/users/login.html:50
msgid "Log in frequently and try again later"
msgstr "登录频繁, 稍后重试"
...
...
@@ -2697,7 +2701,7 @@ msgid "Can't provide security? Please contact the administrator!"
msgstr "如果不能提供MFA验证码,请联系管理员!"
#: users/templates/users/reset_password.html:46
#: users/templates/users/user_detail.html:352 users/utils.py:8
1
#: users/templates/users/user_detail.html:352 users/utils.py:8
0
msgid "Reset password"
msgstr "重置密码"
...
...
@@ -2914,11 +2918,11 @@ msgstr "新的公钥已设置成功,请下载对应的私钥"
msgid "Update user"
msgstr "更新用户"
#: users/utils.py:4
2
#: users/utils.py:4
1
msgid "Create account successfully"
msgstr "创建账户成功"
#: users/utils.py:4
4
#: users/utils.py:4
3
#, python-format
msgid ""
"\n"
...
...
@@ -2963,7 +2967,7 @@ msgstr ""
" </br>\n"
" "
#: users/utils.py:8
3
#: users/utils.py:8
2
#, python-format
msgid ""
"\n"
...
...
@@ -3007,11 +3011,11 @@ msgstr ""
" </br>\n"
" "
#: users/utils.py:11
4
#: users/utils.py:11
3
msgid "SSH Key Reset"
msgstr "重置ssh密钥"
#: users/utils.py:11
6
#: users/utils.py:11
5
#, python-format
msgid ""
"\n"
...
...
@@ -3036,19 +3040,19 @@ msgstr ""
" </br>\n"
" "
#: users/utils.py:14
9
#: users/utils.py:14
8
msgid "User not exist"
msgstr "用户不存在"
#: users/utils.py:15
1
#: users/utils.py:15
0
msgid "Disabled or expired"
msgstr "禁用或失效"
#: users/utils.py:16
4
#: users/utils.py:16
3
msgid "Password or SSH public key invalid"
msgstr "密码或密钥不合法"
#: users/utils.py:2
90 users/utils.py:300
#: users/utils.py:2
89 users/utils.py:299
msgid "Bit"
msgstr " 位"
...
...
apps/terminal/templates/terminal/session_list.html
View file @
435acafc
...
...
@@ -73,6 +73,7 @@
<th
class=
"text-center"
>
{% trans 'System user' %}
</th>
<th
class=
"text-center"
>
{% trans 'Remote addr' %}
</th>
<th
class=
"text-center"
>
{% trans 'Protocol' %}
</th>
<th
class=
"text-center"
>
{% trans 'Login from' %}
</th>
<th
class=
"text-center"
>
{% trans 'Command' %}
</th>
<th
class=
"text-center"
>
{% trans 'Date start' %}
</th>
{#
<th
class=
"text-center"
>
{% trans 'Date last active' %}
</th>
#}
...
...
@@ -92,6 +93,7 @@
<td
class=
"text-center"
>
{{ session.system_user }}
</td>
<td
class=
"text-center"
>
{{ session.remote_addr|default:"" }}
</td>
<td
class=
"text-center"
>
{{ session.protocol }}
</td>
<td
class=
"text-center"
>
{{ session.get_login_from_display }}
</td>
<td
class=
"text-center"
>
{{ session.id | get_session_command_amount }}
</td>
<td
class=
"text-center"
>
{{ session.date_start }}
</td>
...
...
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