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
6acac9cb
Commit
6acac9cb
authored
Jan 29, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of github.com:jumpserver/jumpserver into dev
parents
9d78f268
9d53ba22
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
95 additions
and
32 deletions
+95
-32
replay_storage_create.html
apps/common/templates/common/replay_storage_create.html
+11
-8
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+78
-18
command_execution_create.html
apps/ops/templates/ops/command_execution_create.html
+6
-6
No files found.
apps/common/templates/common/replay_storage_create.html
View file @
6acac9cb
...
...
@@ -35,7 +35,7 @@
<option
value =
"s3"
>
s3
</option>
<option
value=
"oss"
>
oss
</option>
<option
value =
"azure"
>
azure
</option>
<option
value=
"ceph"
>
ceph
</option>
{#
<option
value=
"ceph"
>
ceph
</option>
#}
</select>
</div>
</div>
...
...
@@ -109,11 +109,14 @@
<div
class=
"col-md-9"
>
<input
id=
"id_endpoint"
class=
"form-control"
type=
"text"
name=
"ENDPOINT"
value=
""
placeholder=
"Endpoint"
>
<div
class=
"help-block"
>
<span
class=
"oss"
>
OSS: 格式 http://{REGION_NAME}.aliyuncs.com
<br>
如: http://oss-cn-hangzhou.aliyuncs.com
<span
class=
"oss"
>
{% trans 'OSS: http://{REGION_NAME}.aliyuncs.com' %}
<br>
{% trans 'Example: http://oss-cn-hangzhou.aliyuncs.com' %}
</span>
<span
class=
"s3"
>
S3: http://s3.amazonaws.com
<br>
</span>
<span
class=
"s3"
>
S3中国: http://s3.amazonaws.com.cn
<br></span>
<span
class=
"s3"
>
{% trans 'S3: http://s3.{REGION_NAME}.amazonaws.com' %}
<br></span>
<span
class=
"s3"
>
{% trans 'S3(China): http://s3.{REGION_NAME}.amazonaws.com.cn' %}
<br></span>
<span
class=
"s3"
>
{% trans 'Example: http://s3.cn-north-1.amazonaws.com.cn' %}
<br></span>
</div>
</div>
</div>
...
...
@@ -134,9 +137,9 @@
<input
id=
"id_region"
class=
"form-control"
type=
"text"
name=
"REGION"
value=
""
placeholder=
""
>
<div
class=
"help-block"
>
<span
class=
"s3"
>
北京: cn-north-1
宁夏: cn-northwest-1
<a
href=
"https://docs.aws.amazon.com/zh_cn/general/latest/gr/rande.html"
>
更多
</a>
{% trans 'Beijing: cn-north-1' %}
{% trans 'Ningxia: cn-northwest-1' %}
<a
href=
"https://docs.aws.amazon.com/zh_cn/general/latest/gr/rande.html"
>
{% trans 'More' %}
</a>
</span>
</div>
</div>
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
6acac9cb
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
6acac9cb
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-01-2
1 17:40
+0800\n"
"POT-Creation-Date: 2019-01-2
8 12:56
+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,11 +17,15 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: assets/api/node.py:264
#: assets/api/node.py:58
msgid "You can't update the root node name"
msgstr "不能修改根节点名称"
#: assets/api/node.py:281
msgid "Update node asset hardware information: {}"
msgstr "更新节点资产硬件信息: {}"
#: assets/api/node.py:2
78
#: assets/api/node.py:2
95
msgid "Test if the assets under the node are connectable: {}"
msgstr "测试节点下资产是否可连接: {}"
...
...
@@ -903,7 +907,7 @@ msgstr "其它"
#: common/templates/common/command_storage_create.html:79
#: common/templates/common/email_setting.html:62
#: common/templates/common/ldap_setting.html:62
#: common/templates/common/replay_storage_create.html:1
38
#: common/templates/common/replay_storage_create.html:1
51
#: common/templates/common/security_setting.html:70
#: common/templates/common/terminal_setting.html:68
#: perms/templates/perms/asset_permission_create_update.html:80
...
...
@@ -936,7 +940,7 @@ msgstr "重置"
#: common/templates/common/command_storage_create.html:80
#: common/templates/common/email_setting.html:63
#: common/templates/common/ldap_setting.html:63
#: common/templates/common/replay_storage_create.html:1
39
#: common/templates/common/replay_storage_create.html:1
52
#: common/templates/common/security_setting.html:71
#: common/templates/common/terminal_setting.html:70
#: perms/templates/perms/asset_permission_create_update.html:81
...
...
@@ -2198,17 +2202,52 @@ msgstr "账户密钥"
msgid "Endpoint"
msgstr "端点"
#: common/templates/common/replay_storage_create.html:113
#, python-brace-format
msgid "OSS: http://{REGION_NAME}.aliyuncs.com"
msgstr "OSS: http://{REGION_NAME}.aliyuncs.com"
#: common/templates/common/replay_storage_create.html:115
msgid "Example: http://oss-cn-hangzhou.aliyuncs.com"
msgstr "如: http://oss-cn-hangzhou.aliyuncs.com"
#: common/templates/common/replay_storage_create.html:117
#, python-brace-format
msgid "S3: http://s3.{REGION_NAME}.amazonaws.com"
msgstr "S3: http://s3.{REGION_NAME}.amazonaws.com"
#: common/templates/common/replay_storage_create.html:118
#, python-brace-format
msgid "S3(China): http://s3.{REGION_NAME}.amazonaws.com.cn"
msgstr "S3(中国): http://s3.{REGION_NAME}.amazonaws.com.cn"
#: common/templates/common/replay_storage_create.html:119
msgid "Example: http://s3.cn-north-1.amazonaws.com.cn"
msgstr "如: http://s3.cn-north-1.amazonaws.com.cn"
#: common/templates/common/replay_storage_create.html:125
msgid "Endpoint suffix"
msgstr "端点后缀"
#: common/templates/common/replay_storage_create.html:1
29
#: common/templates/common/replay_storage_create.html:1
35
#: xpack/plugins/cloud/models.py:186
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_detail.html:83
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_instance.html:64
msgid "Region"
msgstr "地域"
#: common/templates/common/replay_storage_create.html:140
msgid "Beijing: cn-north-1"
msgstr "北京: cn-north-1"
#: common/templates/common/replay_storage_create.html:141
msgid "Ningxia: cn-northwest-1"
msgstr "宁夏: cn-northwest-1"
#: common/templates/common/replay_storage_create.html:142
msgid "More"
msgstr "更多"
#: common/templates/common/security_setting.html:46
msgid "Password check rule"
msgstr "密码校验规则"
...
...
@@ -2328,36 +2367,36 @@ msgstr "{} 任务开始: {}"
msgid "{} Task finish"
msgstr "{} 任务结束"
#: ops/models/adhoc.py:32
4
#: ops/models/adhoc.py:32
3
msgid "Start time"
msgstr "开始时间"
#: ops/models/adhoc.py:32
5
#: ops/models/adhoc.py:32
4
msgid "End time"
msgstr "完成时间"
#: ops/models/adhoc.py:32
6
ops/templates/ops/adhoc_history.html:57
#: ops/models/adhoc.py:32
5
ops/templates/ops/adhoc_history.html:57
#: ops/templates/ops/task_history.html:63 ops/templates/ops/task_list.html:41
msgid "Time"
msgstr "时间"
#: ops/models/adhoc.py:32
7
ops/templates/ops/adhoc_detail.html:106
#: ops/models/adhoc.py:32
6
ops/templates/ops/adhoc_detail.html:106
#: ops/templates/ops/adhoc_history.html:55
#: ops/templates/ops/adhoc_history_detail.html:69
#: ops/templates/ops/task_detail.html:84 ops/templates/ops/task_history.html:61
msgid "Is finished"
msgstr "是否完成"
#: ops/models/adhoc.py:32
8
ops/templates/ops/adhoc_history.html:56
#: ops/models/adhoc.py:32
7
ops/templates/ops/adhoc_history.html:56
#: ops/templates/ops/task_history.html:62
msgid "Is success"
msgstr "是否成功"
#: ops/models/adhoc.py:32
9
#: ops/models/adhoc.py:32
8
msgid "Adhoc raw result"
msgstr "结果"
#: ops/models/adhoc.py:3
30
#: ops/models/adhoc.py:3
29
msgid "Adhoc result summary"
msgstr "汇总"
...
...
@@ -2479,8 +2518,6 @@ msgid "Success assets"
msgstr "成功资产"
#: ops/templates/ops/celery_task_log.html:4
#, fuzzy
#| msgid "Task list"
msgid "Task log"
msgstr "任务列表"
...
...
@@ -2490,6 +2527,32 @@ msgstr "任务列表"
msgid "Go"
msgstr ""
#: ops/templates/ops/command_execution_create.html:144
msgid "Selected assets"
msgstr "已选择资产"
#: ops/templates/ops/command_execution_create.html:147
msgid "In total"
msgstr "总共"
#: ops/templates/ops/command_execution_create.html:182
msgid ""
"Select the left asset, select the running system user, execute command in "
"batch"
msgstr "选择左侧资产, 选择运行的系统用户,批量执行命令"
#: ops/templates/ops/command_execution_create.html:200
msgid "Unselected assets"
msgstr "没有选中资产"
#: ops/templates/ops/command_execution_create.html:204
msgid "No input command"
msgstr "没有输入命令"
#: ops/templates/ops/command_execution_create.html:208
msgid "No system user was selected"
msgstr "没有选择系统用户"
#: ops/templates/ops/command_execution_create.html:253
msgid "Pending"
msgstr ""
...
...
@@ -4667,9 +4730,6 @@ msgstr "更新组织"
#~ msgid "No assets, task stop"
#~ msgstr "没有匹配到资产,结束任务"
#~ msgid "You can't update the root node name"
#~ msgstr "不能修改根节点名称"
#~ msgid "Update assets hardware info period"
#~ msgstr "定期更新资产硬件信息"
...
...
apps/ops/templates/ops/command_execution_create.html
View file @
6acac9cb
...
...
@@ -141,10 +141,10 @@ function onCheck(e, treeId, treeNode) {
var
nodes_names
=
nodes
.
map
(
function
(
node
)
{
return
node
.
name
;
});
var
message
=
"
已选择资产: "
;
var
message
=
"
{% trans 'Selected assets' %}"
+
': '
;
message
+=
nodes_names
.
join
(
", "
);
message
+=
"
\
r
\n
"
;
message
+=
"总共: "
+
nodes_names
.
length
+
"个
\
r
\n
"
;
message
+=
"{% trans 'In total' %}"
+
': '
+
nodes_names
.
length
+
"个
\
r
\n
"
;
term
.
clear
();
term
.
write
(
message
)
}
...
...
@@ -179,7 +179,7 @@ function initResultTerminal() {
}
});
term
.
open
(
document
.
getElementById
(
'term'
));
term
.
write
(
"
选择左侧资产, 选择运行的系统用户,批量执行命令
\
r
\n
"
)
term
.
write
(
"
{% trans 'Select the left asset, select the running system user, execute command in batch' %}"
+
"
\
r
\n
"
)
}
function
wrapperError
(
msg
)
{
...
...
@@ -197,15 +197,15 @@ function execute() {
return
node
.
id
;
});
if
(
hosts
.
length
===
0
)
{
term
.
write
(
wrapperError
(
'没有选中资产'
));
term
.
write
(
wrapperError
(
"{% trans 'Unselected assets' %}"
));
return
}
if
(
!
command
)
{
term
.
write
(
wrapperError
(
'没有输入命令'
));
term
.
write
(
wrapperError
(
"{% trans 'No input command' %}"
));
return
}
if
(
!
run_as
)
{
term
.
write
(
wrapperError
(
'没有选择运行用户'
));
term
.
write
(
wrapperError
(
"{% trans 'No system user was selected' %}"
));
return
}
var
data
=
{
...
...
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