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
05255f85
Commit
05255f85
authored
Feb 26, 2018
by
q4speed
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c96a107e
e2cb1287
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
234 additions
and
184 deletions
+234
-184
asset.py
apps/assets/forms/asset.py
+2
-2
admin_user_detail.html
apps/assets/templates/assets/admin_user_detail.html
+2
-2
asset_list.html
apps/assets/templates/assets/asset_list.html
+3
-3
api.py
apps/common/api.py
+1
-2
forms.py
apps/common/forms.py
+9
-1
terminal_setting.html
apps/common/templates/common/terminal_setting.html
+46
-20
views.py
apps/common/views.py
+3
-0
django.mo
apps/i18n/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/i18n/zh/LC_MESSAGES/django.po
+154
-141
settings.py
apps/jumpserver/settings.py
+7
-9
asset_permission_list.html
apps/perms/templates/perms/asset_permission_list.html
+3
-3
base.html
apps/templates/base.html
+1
-1
0001_initial.py
apps/users/migrations/0001_initial.py
+3
-0
No files found.
apps/assets/forms/asset.py
View file @
05255f85
...
...
@@ -103,10 +103,10 @@ class AssetBulkUpdateForm(forms.ModelForm):
]
widgets
=
{
'labels'
:
forms
.
SelectMultiple
(
attrs
=
{
'class'
:
'select2'
,
'data-placeholder'
:
_
(
'
L
abels'
)}
attrs
=
{
'class'
:
'select2'
,
'data-placeholder'
:
_
(
'
Select l
abels'
)}
),
'nodes'
:
forms
.
SelectMultiple
(
attrs
=
{
'class'
:
'select2'
,
'data-placeholder'
:
_
(
'
N
odes'
)}
attrs
=
{
'class'
:
'select2'
,
'data-placeholder'
:
_
(
'
Select n
odes'
)}
),
}
...
...
apps/assets/templates/assets/admin_user_detail.html
View file @
05255f85
...
...
@@ -80,7 +80,7 @@
<div
class=
"col-sm-4"
style=
"padding-left: 0;padding-right: 0"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-info-circle"
></i>
{% trans 'Replace assets admin user with this' %}
<i
class=
"fa fa-info-circle"
></i>
{% trans 'Replace
node
assets admin user with this' %}
</div>
<div
class=
"panel-body"
>
<table
class=
"table group_edit"
id=
"table-clusters"
>
...
...
@@ -88,7 +88,7 @@
<form>
<tr>
<td
colspan=
"2"
class=
"no-borders"
>
<select
data-placeholder=
"{% trans '
N
odes' %}"
id=
"nodes_selected"
class=
"select2"
style=
"width: 100%"
multiple=
""
tabindex=
"4"
>
<select
data-placeholder=
"{% trans '
Select n
odes' %}"
id=
"nodes_selected"
class=
"select2"
style=
"width: 100%"
multiple=
""
tabindex=
"4"
>
{% for node in nodes %}
<option
value=
"{{ node.id }}"
id=
"opt_{{ node.id }}"
>
{{ node.value }}
</option>
{% endfor %}
...
...
apps/assets/templates/assets/asset_list.html
View file @
05255f85
...
...
@@ -50,7 +50,7 @@
<div
class=
"col-lg-9 animated fadeInRight"
id=
"split-right"
>
<div
class=
"tree-toggle"
>
<div
class=
"btn btn-sm btn-primary tree-toggle-btn"
onclick=
"toggle()"
>
<i
class=
"fa fa-angle-left fa-
2
x"
id=
"toggle-icon"
></i>
<i
class=
"fa fa-angle-left fa-x"
id=
"toggle-icon"
></i>
</div>
</div>
<div
class=
"mail-box-header"
>
...
...
@@ -348,12 +348,12 @@ function toggle() {
if
(
show
===
0
)
{
$
(
"#split-left"
).
hide
(
500
,
function
()
{
$
(
"#split-right"
).
attr
(
"class"
,
"col-lg-12"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-right fa-
2
x"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-right fa-x"
);
show
=
1
;
});
}
else
{
$
(
"#split-right"
).
attr
(
"class"
,
"col-lg-9"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-left fa-
2
x"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-left fa-x"
);
$
(
"#split-left"
).
show
(
500
);
show
=
0
;
}
...
...
apps/common/api.py
View file @
05255f85
...
...
@@ -9,7 +9,7 @@ from django.core.mail import get_connection, send_mail
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.conf
import
settings
from
.permissions
import
IsSuperUser
from
.permissions
import
IsSuperUser
,
IsAppUser
from
.serializers
import
MailTestSerializer
,
LDAPTestSerializer
...
...
@@ -102,4 +102,3 @@ class DjangoSettingsAPI(APIView):
if
i
.
isupper
():
configs
[
i
]
=
str
(
getattr
(
settings
,
i
))
return
Response
(
configs
)
apps/common/forms.py
View file @
05255f85
...
...
@@ -127,7 +127,8 @@ class LDAPSettingForm(BaseForm):
"name"
:
"sn"
,
"email"
:
"mail"
}),
help_text
=
_
(
"User attr map present how to map LDAP user attr to jumpserver, username,name,email is jumpserver attr"
)
help_text
=
_
(
"User attr map present how to map LDAP user attr to jumpserver, username,name,email is jumpserver attr"
)
)
# AUTH_LDAP_GROUP_SEARCH_OU = CONFIG.AUTH_LDAP_GROUP_SEARCH_OU
# AUTH_LDAP_GROUP_SEARCH_FILTER = CONFIG.AUTH_LDAP_GROUP_SEARCH_FILTER
...
...
@@ -160,3 +161,10 @@ class TerminalSettingForm(BaseForm):
"You can set other storage and some terminal using"
)
)
TERMINAL_REPLAY_STORAGE
=
DictField
(
label
=
_
(
"Replay storage"
),
help_text
=
_
(
"Set replay storage setting, `default` is the using as default,"
"You can set other storage and some terminal using"
)
)
apps/common/templates/common/terminal_setting.html
View file @
05255f85
...
...
@@ -12,16 +12,20 @@
<div
class=
"panel-options"
>
<ul
class=
"nav nav-tabs"
>
<li>
<a
href=
"{% url 'settings:basic-setting' %}"
class=
"text-center"
><i
class=
"fa fa-cubes"
></i>
{% trans 'Basic setting' %}
</a>
<a
href=
"{% url 'settings:basic-setting' %}"
class=
"text-center"
><i
class=
"fa fa-cubes"
></i>
{% trans 'Basic setting' %}
</a>
</li>
<li>
<a
href=
"{% url 'settings:email-setting' %}"
class=
"text-center"
><i
class=
"fa fa-envelope"
></i>
{% trans 'Email setting' %}
</a>
<a
href=
"{% url 'settings:email-setting' %}"
class=
"text-center"
><i
class=
"fa fa-envelope"
></i>
{% trans 'Email setting' %}
</a>
</li>
<li>
<a
href=
"{% url 'settings:ldap-setting' %}"
class=
"text-center"
><i
class=
"fa fa-archive"
></i>
{% trans 'LDAP setting' %}
</a>
<a
href=
"{% url 'settings:ldap-setting' %}"
class=
"text-center"
><i
class=
"fa fa-archive"
></i>
{% trans 'LDAP setting' %}
</a>
</li>
<li
class=
"active"
>
<a
href=
"{% url 'settings:terminal-setting' %}"
class=
"text-center"
><i
class=
"fa fa-hdd-o"
></i>
{% trans 'Terminal setting' %}
</a>
<a
href=
"{% url 'settings:terminal-setting' %}"
class=
"text-center"
><i
class=
"fa fa-hdd-o"
></i>
{% trans 'Terminal setting' %}
</a>
</li>
</ul>
</div>
...
...
@@ -41,13 +45,14 @@
{% bootstrap_field field layout="horizontal" %}
{% else %}
<div
class=
"form-group"
>
<label
for=
"{{ field.id_for_label }}"
class=
"col-sm-2 control-label"
>
{{ field.label }}
</label>
<label
for=
"{{ field.id_for_label }}"
class=
"col-sm-2 control-label"
>
{{ field.label }}
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-1"
>
{{ field }}
</div>
<div
class=
"col-sm-9"
>
<span
class=
"help-block"
>
{{ field.help_text }}
</span>
<span
class=
"help-block"
>
{{ field.help_text }}
</span>
</div>
</div>
</div>
...
...
@@ -56,7 +61,7 @@
<div
class=
"hr-line-dashed"
></div>
<h3>
{% trans "Command storage" %}
</h3>
<table
class=
"table table-hover "
id=
"task-history-list-table"
>
<table
class=
"table table-hover "
id=
"task-history-list-table"
>
<thead>
<tr>
<th>
{% trans 'Name' %}
</th>
...
...
@@ -72,15 +77,35 @@
{% endfor %}
</tbody>
</table>
{#
<button
class=
"btn btn-default btn-circle btn-add-command-storage"
data-toggle=
"modal"
data-target=
"#add_command_storage_model"
tabindex=
"0"
type=
"button"
><i
class=
"fa fa-plus"
></i></button>
#}
{#
<div
class=
"hr-line-dashed"
></div>
#}
{#
<h3>
{% trans "Replay storage" %}
</h3>
#}
{#
<button
class=
"btn btn-default btn-circle btn-add-command-storage"
data-toggle=
"modal"
data-target=
"#add_command_storage_model"
tabindex=
"0"
type=
"button"
><i
class=
"fa fa-plus"
></i></button>
#}
{#
<div
class=
"hr-line-dashed"
></div>
#}
{#
<h3>
{% trans "Replay storage" %}
</h3>
#}
<div
class=
"hr-line-dashed"
></div>
<h3>
{% trans "Replay storage" %}
</h3>
<table
class=
"table table-hover "
id=
"task-history-list-table"
>
<thead>
<tr>
<th>
{% trans 'Name' %}
</th>
<th>
{% trans 'Type' %}
</th>
<th>
{% trans 'Setting' %}
</th>
</tr>
</thead>
<tbody>
{% for name, setting in replay_storage.items %}
<tr>
<td>
{{ name }}
</td>
<td>
{{ setting.TYPE }}
</td>
<td>
{{ setting }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"form-group"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<button
class=
"btn btn-default"
type=
"reset"
>
{% trans 'Reset' %}
</button>
<button
id=
"submit_button"
class=
"btn btn-primary"
type=
"submit"
>
{% trans 'Submit' %}
</button>
<button
id=
"submit_button"
class=
"btn btn-primary"
type=
"submit"
>
{% trans 'Submit' %}
</button>
</div>
</div>
</form>
...
...
@@ -94,10 +119,10 @@
</div>
{% endblock %}
{% block custom_foot_js %}
<script>
$
(
document
).
ready
(
function
()
{
})
.
on
(
"click"
,
".btn-test"
,
function
()
{
<script>
$
(
document
).
ready
(
function
()
{
})
.
on
(
"click"
,
".btn-test"
,
function
()
{
var
data
=
{};
var
form
=
$
(
"form"
).
serializeArray
();
$
.
each
(
form
,
function
(
i
,
field
)
{
...
...
@@ -113,6 +138,7 @@ $(document).ready(function () {
function
success
(
message
)
{
toastr
.
success
(
message
.
msg
)
}
APIUpdateAttr
({
url
:
the_url
,
body
:
JSON
.
stringify
(
data
),
...
...
@@ -121,9 +147,9 @@ $(document).ready(function () {
success
:
success
,
error
:
error
});
})
.
on
(
'click'
,
''
,
function
()
{
})
.
on
(
'click'
,
''
,
function
()
{
})
</script>
})
</script>
{% endblock %}
apps/common/views.py
View file @
05255f85
...
...
@@ -97,10 +97,12 @@ class TerminalSettingView(AdminUserRequiredMixin, TemplateView):
def
get_context_data
(
self
,
**
kwargs
):
command_storage
=
settings
.
TERMINAL_COMMAND_STORAGE
replay_storage
=
settings
.
TERMINAL_REPLAY_STORAGE
context
=
{
'app'
:
_
(
'Settings'
),
'action'
:
_
(
'Terminal setting'
),
'form'
:
self
.
form_class
(),
'replay_storage'
:
replay_storage
,
'command_storage'
:
command_storage
,
}
kwargs
.
update
(
context
)
...
...
@@ -117,3 +119,4 @@ class TerminalSettingView(AdminUserRequiredMixin, TemplateView):
context
=
self
.
get_context_data
()
context
.
update
({
"form"
:
form
})
return
render
(
request
,
self
.
template_name
,
context
)
apps/i18n/zh/LC_MESSAGES/django.mo
View file @
05255f85
No preview for this file type
apps/i18n/zh/LC_MESSAGES/django.po
View file @
05255f85
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-
09 15:27
+0800\n"
"POT-Creation-Date: 2018-02-
26 16:54
+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"
...
...
@@ -21,24 +21,23 @@ msgstr ""
msgid "New node {}"
msgstr "新节点 {}"
#: assets/forms/asset.py:23 assets/forms/asset.py:52 assets/forms/asset.py:102
#: assets/forms/user.py:125 assets/models/asset.py:45 assets/models/user.py:221
#: assets/templates/assets/admin_user_detail.html:91
#: 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/templates/assets/asset_detail.html:181
#: assets/templates/assets/asset_detail.html:189
#: assets/templates/assets/system_user_detail.html:164
msgid "Nodes"
msgstr "节点管理"
#: assets/forms/asset.py:26 assets/forms/asset.py:55 assets/forms/asset.py:9
6
#: assets/
models/asset.py:49 assets/models/cluster.py:1
9
#: assets/models/
user.py:190 assets/templates/assets/asset_detail.html:73
#: templates/_nav.html:23
#: assets/forms/asset.py:26 assets/forms/asset.py:55 assets/forms/asset.py:9
0
#: assets/
forms/asset.py:94 assets/models/asset.py:4
9
#: assets/models/
cluster.py:19 assets/models/user.py:190
#:
assets/templates/assets/asset_detail.html:73
templates/_nav.html:23
msgid "Admin user"
msgstr "管理用户"
#: assets/forms/asset.py:29 assets/forms/asset.py:58 assets/
forms/asset.py:99
#: assets/
models/asset.py:73 assets/
templates/assets/asset_create.html:31
#: assets/forms/asset.py:29 assets/forms/asset.py:58 assets/
models/asset.py:73
#: assets/templates/assets/asset_create.html:31
#: assets/templates/assets/asset_detail.html:218
#: assets/templates/assets/asset_update.html:36 templates/_nav.html:25
msgid "Labels"
...
...
@@ -63,6 +62,14 @@ msgstr "选择资产"
msgid "Port"
msgstr "端口"
#: assets/forms/asset.py:106 assets/templates/assets/asset_create.html:35
msgid "Select labels"
msgstr "选择标签"
#: assets/forms/asset.py:109 assets/templates/assets/admin_user_detail.html:91
msgid "Select nodes"
msgstr "选择节点"
#: assets/forms/label.py:13 assets/models/asset.py:137
#: assets/templates/assets/admin_user_list.html:24
#: assets/templates/assets/label_list.html:16
...
...
@@ -108,7 +115,8 @@ msgstr "密码和私钥, 必须输入一个"
#: assets/templates/assets/label_list.html:14
#: 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:62 ops/models.py:31
#: common/templates/common/terminal_setting.html:67
#: common/templates/common/terminal_setting.html:88 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:15
...
...
@@ -157,9 +165,9 @@ msgstr "高优先级的系统用户将会作为默认登录用户"
#: assets/models/asset.py:42 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:
75
#: assets/templates/assets/asset_list.html:
81
#: assets/templates/assets/system_user_asset.html:50
#: assets/templates/assets/user_asset_list.html:20 common/forms.py:14
3
#: assets/templates/assets/user_asset_list.html:20 common/forms.py:14
4
#: perms/templates/perms/asset_permission_asset.html:55
#: users/templates/users/login_log_list.html:52
#: users/templates/users/user_granted_asset.html:45
...
...
@@ -170,9 +178,9 @@ msgstr "IP"
#: assets/models/asset.py:43 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:
74
#: assets/templates/assets/asset_list.html:
80
#: assets/templates/assets/system_user_asset.html:49
#: assets/templates/assets/user_asset_list.html:19 common/forms.py:14
2
#: assets/templates/assets/user_asset_list.html:19 common/forms.py:14
3
#: perms/templates/perms/asset_permission_asset.html:54
#: users/templates/users/user_granted_asset.html:44
#: users/templates/users/user_group_granted_asset.html:44
...
...
@@ -181,7 +189,7 @@ msgstr "主机名"
#: assets/models/asset.py:46 assets/models/label.py:20
#: assets/templates/assets/asset_detail.html:105
#: perms/templates/perms/asset_permission_list.html:
65
#: perms/templates/perms/asset_permission_list.html:
70
msgid "Is active"
msgstr "激活"
...
...
@@ -285,7 +293,7 @@ msgstr "创建日期"
#: users/models/user.py:47 users/templates/users/user_detail.html:111
#: users/templates/users/user_group_detail.html:67
#: users/templates/users/user_group_list.html:14
#: users/templates/users/user_profile.html:11
8
#: users/templates/users/user_profile.html:11
4
msgid "Comment"
msgstr "备注"
...
...
@@ -350,7 +358,7 @@ msgstr "默认资产组"
#: 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
3
#: users/templates/users/user_group_list.html:13 users/views/user.py:33
0
msgid "User"
msgstr "用户"
...
...
@@ -397,9 +405,9 @@ msgstr "Sudo"
msgid "Shell"
msgstr "Shell"
#: assets/models/user.py:26
2
perms/forms.py:25 perms/models.py:19
#: assets/models/user.py:26
9
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:6
4
templates/_nav.html:24
#: perms/templates/perms/asset_permission_list.html:6
9
templates/_nav.html:24
#: terminal/backends/command/models.py:12 terminal/models.py:117
#: terminal/templates/terminal/command_list.html:48
#: terminal/templates/terminal/command_list.html:74
...
...
@@ -425,27 +433,31 @@ msgstr "更新资产硬件信息"
msgid "Update assets hardware info period"
msgstr "定期更新资产硬件信息"
#: assets/tasks.py:19
0
#: assets/tasks.py:19
1
msgid "Test admin user connectability period: {}"
msgstr "定期测试管理用户可连接性: {}"
#: assets/tasks.py:
204
#: assets/tasks.py:
197
msgid "Test admin user connectability: {}"
msgstr "测试管理用户可连接性: {}"
#: assets/tasks.py:2
13
#: assets/tasks.py:2
06
msgid "Test asset connectability"
msgstr "测试资产可连接性"
#: assets/tasks.py:2
86
#: assets/tasks.py:2
77
msgid "Test system user connectability: {}"
msgstr "测试系统用户可连接性: {}"
#: assets/tasks.py:383
#: assets/tasks.py:288
msgid "test system user connectability period: {}"
msgstr "测试系统用户可连接性: {}"
#: assets/tasks.py:361
msgid "Push system user to node: {} => {}"
msgstr "推送系统用户到节点: {}->{}"
#: assets/tasks.py:
415
#: assets/tasks.py:
393
msgid "Push system users to node: {}"
msgstr "推送系统用户到节点: {}"
...
...
@@ -461,9 +473,9 @@ msgstr "仅修改你需要更新的字段"
#: assets/templates/assets/system_user_asset.html:21
#: assets/views/admin_user.py:29 assets/views/admin_user.py:47
#: assets/views/admin_user.py:63 assets/views/admin_user.py:78
#: assets/views/admin_user.py:102 assets/views/asset.py:4
7
#: assets/views/asset.py:6
0 assets/views/asset.py:94 assets/views/asset.py:154
#: assets/views/asset.py:17
1 assets/views/asset.py:195
assets/views/label.py:26
#: assets/views/admin_user.py:102 assets/views/asset.py:4
8
#: assets/views/asset.py:6
1 assets/views/asset.py:95 assets/views/asset.py:155
#: assets/views/asset.py:17
2 assets/views/asset.py:196
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
...
...
@@ -510,14 +522,14 @@ msgid "If set id, will use this id update asset existed"
msgstr "如果设置了id,则会使用该行信息更新该id的资产"
#: assets/templates/assets/_asset_list_modal.html:22
#: assets/templates/assets/asset_list.html:
76
#: assets/templates/assets/asset_list.html:
82
#: assets/templates/assets/user_asset_list.html:22
msgid "Hardware"
msgstr "硬件"
#: assets/templates/assets/_asset_list_modal.html:23
#: assets/templates/assets/asset_detail.html:143
#: assets/templates/assets/asset_list.html:
77
#: assets/templates/assets/asset_list.html:
83
#: assets/templates/assets/user_asset_list.html:23 perms/models.py:20
#: perms/models.py:77
#: perms/templates/perms/asset_permission_create_update.html:51
...
...
@@ -536,7 +548,7 @@ msgstr "激活中"
#: assets/templates/assets/admin_user_assets.html:54
#: assets/templates/assets/admin_user_list.html:25
#: assets/templates/assets/asset_detail.html:357
#: assets/templates/assets/asset_list.html:
78
#: assets/templates/assets/asset_list.html:
84
#: assets/templates/assets/system_user_asset.html:52
#: assets/templates/assets/system_user_list.html:27
#: users/templates/users/user_granted_asset.html:47
...
...
@@ -546,12 +558,12 @@ msgstr "可连接"
#: assets/templates/assets/_asset_list_modal.html:25
#: assets/templates/assets/admin_user_list.html:29
#: assets/templates/assets/asset_list.html:
79
#: assets/templates/assets/asset_list.html:
85
#: assets/templates/assets/label_list.html:17
#: assets/templates/assets/system_user_list.html:31
#: 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:
67
#: perms/templates/perms/asset_permission_list.html:
72
#: terminal/templates/terminal/session_list.html:79
#: terminal/templates/terminal/terminal_list.html:36
#: users/templates/users/user_group_list.html:15
...
...
@@ -560,25 +572,25 @@ msgid "Action"
msgstr "动作"
#: assets/templates/assets/_asset_list_modal.html:34
#: assets/templates/assets/asset_list.html:
88
#: assets/templates/assets/asset_list.html:
94
#: users/templates/users/user_list.html:37
msgid "Delete selected"
msgstr "批量删除"
#: assets/templates/assets/_asset_list_modal.html:35
#: assets/templates/assets/asset_list.html:
89
#: assets/templates/assets/asset_list.html:
95
#: users/templates/users/user_list.html:38
msgid "Update selected"
msgstr "批量更新"
#: assets/templates/assets/_asset_list_modal.html:36
#: assets/templates/assets/asset_list.html:9
1
#: assets/templates/assets/asset_list.html:9
7
#: users/templates/users/user_list.html:39
msgid "Deactive selected"
msgstr "禁用所选"
#: assets/templates/assets/_asset_list_modal.html:37
#: assets/templates/assets/asset_list.html:9
2
#: assets/templates/assets/asset_list.html:9
8
#: users/templates/users/user_list.html:40
msgid "Active selected"
msgstr "激活所选"
...
...
@@ -588,13 +600,13 @@ msgstr "激活所选"
#: assets/templates/assets/admin_user_create_update.html:46
#: assets/templates/assets/asset_bulk_update.html:24
#: assets/templates/assets/asset_create.html:65
#: assets/templates/assets/asset_list.html:
96
#: assets/templates/assets/asset_list.html:
102
#: assets/templates/assets/asset_update.html:69
#: 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:
83
#: common/templates/common/terminal_setting.html:
108
#: perms/templates/perms/asset_permission_create_update.html:72
#: terminal/templates/terminal/terminal_update.html:47
#: users/templates/users/_user.html:44
...
...
@@ -610,14 +622,14 @@ msgstr "提交"
#: assets/templates/assets/_asset_list_modal.html:79
#: assets/templates/assets/admin_user_detail.html:24
#: assets/templates/assets/admin_user_list.html:8
3
#: assets/templates/assets/admin_user_list.html:8
4
#: assets/templates/assets/asset_detail.html:24
#: assets/templates/assets/asset_list.html:1
54
#: assets/templates/assets/asset_list.html:1
60
#: assets/templates/assets/label_list.html:38
#: assets/templates/assets/system_user_detail.html:26
#: assets/templates/assets/system_user_list.html:8
4
#: assets/templates/assets/system_user_list.html:8
5
#: perms/templates/perms/asset_permission_detail.html:30
#: perms/templates/perms/asset_permission_list.html:1
15
#: perms/templates/perms/asset_permission_list.html:1
21
#: terminal/templates/terminal/terminal_detail.html:16
#: terminal/templates/terminal/terminal_list.html:71
#: users/templates/users/user_detail.html:25
...
...
@@ -629,15 +641,15 @@ msgstr "更新"
#: assets/templates/assets/_asset_list_modal.html:80
#: assets/templates/assets/admin_user_detail.html:28
#: assets/templates/assets/admin_user_list.html:8
4
#: assets/templates/assets/admin_user_list.html:8
5
#: assets/templates/assets/asset_detail.html:28
#: assets/templates/assets/asset_list.html:1
55
#: assets/templates/assets/asset_list.html:1
61
#: assets/templates/assets/label_list.html:39
#: assets/templates/assets/system_user_detail.html:30
#: assets/templates/assets/system_user_list.html:8
5
#: assets/templates/assets/system_user_list.html:8
6
#: ops/templates/ops/task_list.html:71
#: perms/templates/perms/asset_permission_detail.html:34
#: perms/templates/perms/asset_permission_list.html:1
16
#: perms/templates/perms/asset_permission_list.html:1
22
#: terminal/templates/terminal/terminal_list.html:73
#: users/templates/users/user_detail.html:30
#: users/templates/users/user_group_detail.html:32
...
...
@@ -690,14 +702,14 @@ msgstr "其它"
#: 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:
82
#: common/templates/common/terminal_setting.html:
106
#: perms/templates/perms/asset_permission_create_update.html:71
#: terminal/templates/terminal/terminal_update.html:46
#: users/templates/users/_user.html:43
#: users/templates/users/user_bulk_update.html:23
#: users/templates/users/user_password_update.html:58
#: users/templates/users/user_profile.html:13
9
#: users/templates/users/user_profile.html:14
7
#: users/templates/users/user_profile.html:13
5
#: users/templates/users/user_profile.html:14
3
#: users/templates/users/user_profile_update.html:63
#: users/templates/users/user_pubkey_update.html:70
msgid "Reset"
...
...
@@ -756,14 +768,16 @@ msgid "Create admin user"
msgstr "创建管理用户"
#: assets/templates/assets/admin_user_detail.html:83
msgid "Replace assets admin user with this"
#, fuzzy
#| msgid "Replace assets admin user with this"
msgid "Replace node assets admin user with this"
msgstr "替换资产管理员"
#: assets/templates/assets/admin_user_detail.html:100
#: assets/templates/assets/asset_detail.html:198
#: assets/templates/assets/asset_list.html:4
61
#: assets/templates/assets/asset_list.html:4
82
#: assets/templates/assets/system_user_detail.html:181
#: assets/templates/assets/system_user_list.html:13
4
templates/_modal.html:16
#: assets/templates/assets/system_user_list.html:13
5
templates/_modal.html:16
#: terminal/templates/terminal/session_detail.html:108
#: users/templates/users/user_detail.html:339
#: users/templates/users/user_detail.html:364
...
...
@@ -771,7 +785,7 @@ msgstr "替换资产管理员"
#: users/templates/users/user_group_create_update.html:32
#: users/templates/users/user_group_list.html:86
#: users/templates/users/user_list.html:196
#: users/templates/users/user_profile.html:1
81
#: users/templates/users/user_profile.html:1
77
msgid "Confirm"
msgstr "确认"
...
...
@@ -790,21 +804,17 @@ msgstr "比例"
#: assets/templates/assets/asset_create.html:27
#: assets/templates/assets/asset_update.html:32 perms/models.py:74
#: perms/templates/perms/asset_permission_create_update.html:40
#: perms/templates/perms/asset_permission_list.html:6
2
#: perms/templates/perms/asset_permission_list.html:6
7
msgid "Node"
msgstr "节点"
#: assets/templates/assets/asset_create.html:33
#: assets/templates/assets/asset_list.html:6
3
#: assets/templates/assets/asset_list.html:6
9
#: assets/templates/assets/asset_update.html:38
msgid "Label"
msgstr "标签"
#: assets/templates/assets/asset_create.html:35
msgid "Select labels"
msgstr "选择标签"
#: assets/templates/assets/asset_detail.html:20 assets/views/asset.py:196
#: assets/templates/assets/asset_detail.html:20 assets/views/asset.py:197
msgid "Asset detail"
msgstr "资产详情"
...
...
@@ -825,7 +835,7 @@ msgstr "创建日期"
#: assets/templates/assets/asset_detail.html:137
#: terminal/templates/terminal/session_detail.html:81
#: users/templates/users/user_detail.html:122
#: users/templates/users/user_profile.html:1
30
#: users/templates/users/user_profile.html:1
26
msgid "Quick modify"
msgstr "快速修改"
...
...
@@ -842,51 +852,51 @@ msgstr "刷新"
msgid "Update successfully!"
msgstr "更新成功"
#: assets/templates/assets/asset_list.html:5
1
#: assets/templates/assets/asset_list.html:1
08 assets/views/asset.py:95
#: assets/templates/assets/asset_list.html:5
7
#: assets/templates/assets/asset_list.html:1
14 assets/views/asset.py:96
msgid "Create asset"
msgstr "创建资产"
#: assets/templates/assets/asset_list.html:
55
#: assets/templates/assets/asset_list.html:
61
#: users/templates/users/user_list.html:7
msgid "Import"
msgstr "导入"
#: assets/templates/assets/asset_list.html:
58
#: assets/templates/assets/asset_list.html:
64
#: users/templates/users/user_list.html:10
msgid "Export"
msgstr "导出"
#: assets/templates/assets/asset_list.html:9
0
#: assets/templates/assets/asset_list.html:9
6
msgid "Remove from this node"
msgstr "从节点移除"
#: assets/templates/assets/asset_list.html:1
09
#: assets/templates/assets/asset_list.html:1
15
msgid "Add asset"
msgstr "添加资产到节点"
#: assets/templates/assets/asset_list.html:11
1
#: assets/templates/assets/asset_list.html:11
7
msgid "Add node"
msgstr "新建节点"
#: assets/templates/assets/asset_list.html:11
2
#: assets/templates/assets/asset_list.html:11
8
msgid "Rename node"
msgstr "重命名节点"
#: assets/templates/assets/asset_list.html:1
14
#: assets/templates/assets/asset_list.html:1
20
msgid "Delete node"
msgstr "删除节点"
#: assets/templates/assets/asset_list.html:1
89
#: assets/templates/assets/asset_list.html:1
95
msgid "Create node failed"
msgstr "创建节点失败"
#: assets/templates/assets/asset_list.html:20
2
#: assets/templates/assets/asset_list.html:20
8
msgid "Have child node, cancel"
msgstr "存在子节点,不能删除"
#: assets/templates/assets/asset_list.html:4
56
#: assets/templates/assets/system_user_list.html:1
29
#: assets/templates/assets/asset_list.html:4
77
#: assets/templates/assets/system_user_list.html:1
30
#: users/templates/users/user_detail.html:334
#: users/templates/users/user_detail.html:359
#: users/templates/users/user_group_list.html:81
...
...
@@ -894,20 +904,20 @@ msgstr "存在子节点,不能删除"
msgid "Are you sure?"
msgstr "你确认吗?"
#: assets/templates/assets/asset_list.html:4
57
#: assets/templates/assets/asset_list.html:4
78
msgid "This will delete the selected assets !!!"
msgstr "删除选择资产"
#: assets/templates/assets/asset_list.html:4
65
#: assets/templates/assets/asset_list.html:4
86
msgid "Asset Deleted."
msgstr "已被删除"
#: assets/templates/assets/asset_list.html:4
66
#: assets/templates/assets/asset_list.html:4
71
#: assets/templates/assets/asset_list.html:4
87
#: assets/templates/assets/asset_list.html:4
92
msgid "Asset Delete"
msgstr "删除"
#: assets/templates/assets/asset_list.html:4
70
#: assets/templates/assets/asset_list.html:4
91
msgid "Asset Deleting failed."
msgstr "删除失败"
...
...
@@ -949,10 +959,12 @@ msgid "Test assets connective"
msgstr "测试资产可连接性"
#: assets/templates/assets/system_user_asset.html:147
#: assets/templates/assets/system_user_detail.html:301
msgid "Task has been send, Go to ops task list seen result"
msgstr "任务已下发,查看ops任务列表"
#: assets/templates/assets/system_user_asset.html:159
#: assets/templates/assets/system_user_detail.html:313
msgid "Task has been send, seen left assets status"
msgstr "任务已下发,查看左侧资产状态"
...
...
@@ -968,20 +980,20 @@ msgstr "Uid"
msgid "Add to node"
msgstr "添加到节点"
#: assets/templates/assets/system_user_list.html:13
0
#: assets/templates/assets/system_user_list.html:13
1
msgid "This will delete the selected System Users !!!"
msgstr "删除选择系统用户"
#: assets/templates/assets/system_user_list.html:13
8
#: assets/templates/assets/system_user_list.html:13
9
msgid "System Users Deleted."
msgstr "已被删除"
#: assets/templates/assets/system_user_list.html:1
39
#: assets/templates/assets/system_user_list.html:14
4
#: assets/templates/assets/system_user_list.html:1
40
#: assets/templates/assets/system_user_list.html:14
5
msgid "System Users Delete"
msgstr "删除系统用户"
#: assets/templates/assets/system_user_list.html:14
3
#: assets/templates/assets/system_user_list.html:14
4
msgid "System Users Deleting failed."
msgstr "系统用户删除失败"
...
...
@@ -1001,23 +1013,19 @@ msgstr "更新管理用户"
msgid "Admin user detail"
msgstr "管理用户详情"
#: assets/views/asset.py:4
8 assets/views/asset.py:61
templates/_nav.html:22
#: assets/views/asset.py:4
9 assets/views/asset.py:62
templates/_nav.html:22
msgid "Asset list"
msgstr "资产列表"
#: assets/views/asset.py:15
5
#: assets/views/asset.py:15
6
msgid "Bulk update asset"
msgstr "批量更新资产"
#: assets/views/asset.py:17
2
#: assets/views/asset.py:17
3
msgid "Update asset"
msgstr "编辑资产"
#: assets/views/asset.py:225 assets/views/asset.py:265
msgid "Asset groups"
msgstr "资产组"
#: assets/views/asset.py:305
#: assets/views/asset.py:296
msgid "already exists"
msgstr "已经存在"
...
...
@@ -1115,7 +1123,7 @@ msgstr "SMTP密码"
msgid "Some provider use token except password"
msgstr "一些邮件提供商需要输入的是Token"
#: common/forms.py:96 common/forms.py:13
5
#: common/forms.py:96 common/forms.py:13
6
msgid "Use SSL"
msgstr "使用SSL"
...
...
@@ -1156,7 +1164,7 @@ msgstr "用户过滤器必须包含([cn,uid,sAMAccountName,...]=%(user)s)"
msgid "User attr map"
msgstr "LDAP属性映射"
#: common/forms.py:13
0
#: common/forms.py:13
1
msgid ""
"User attr map present how to map LDAP user attr to jumpserver, username,name,"
"email is jumpserver attr"
...
...
@@ -1164,41 +1172,52 @@ msgstr ""
"用户属性映射代表怎样将LDAP中用户属性映射到jumpserver用户上,username, name,"
"email 是jumpserver的属性"
#: common/forms.py:13
7
#: common/forms.py:13
8
msgid "Enable LDAP auth"
msgstr "启用LDAP认证"
#: common/forms.py:14
6
#: common/forms.py:14
7
msgid "List sort by"
msgstr "资产列表排序"
#: common/forms.py:1
49
#: common/forms.py:1
50
msgid "Heartbeat interval"
msgstr "心跳间隔"
#: common/forms.py:1
49
ops/models.py:32
#: common/forms.py:1
50
ops/models.py:32
msgid "Units: seconds"
msgstr "单位: 秒"
#: common/forms.py:15
2
#: common/forms.py:15
3
msgid "Password auth"
msgstr "密码认证"
#: common/forms.py:15
5
#: common/forms.py:15
6
msgid "Public key auth"
msgstr "秘钥认证"
#: common/forms.py:15
8 common/templates/common/terminal_setting.html:58
#: common/forms.py:15
9 common/templates/common/terminal_setting.html:63
#: terminal/forms.py:21 terminal/models.py:19
msgid "Command storage"
msgstr "命令存储"
#: common/forms.py:1
59
#: common/forms.py:1
60
msgid ""
"Set terminal storage setting, `default` is the using as default,You can set "
"other storage and some terminal using"
msgstr "设置终端命令存储,default是默认用的存储方式"
#: common/forms.py:165 common/templates/common/terminal_setting.html:84
#: terminal/models.py:20
msgid "Replay storage"
msgstr "录像存储"
#: common/forms.py:166
msgid ""
"Set replay storage setting, `default` is the using as default,You can set "
"other storage and some terminal using"
msgstr "设置终端录像存储,default是默认用的存储方式"
#: common/mixins.py:29
msgid "is discard"
msgstr ""
...
...
@@ -1214,29 +1233,29 @@ msgstr "启用"
#: common/templates/common/basic_setting.html:15
#: common/templates/common/email_setting.html:15
#: common/templates/common/ldap_setting.html:15
#: common/templates/common/terminal_setting.html:1
5
#: common/templates/common/terminal_setting.html:
38
common/views.py:21
#: common/templates/common/terminal_setting.html:1
6
#: common/templates/common/terminal_setting.html:
42
common/views.py:21
msgid "Basic setting"
msgstr "基本设置"
#: common/templates/common/basic_setting.html:18
#: common/templates/common/email_setting.html:18
#: common/templates/common/ldap_setting.html:18
#: common/templates/common/terminal_setting.html:
18
common/views.py:47
#: common/templates/common/terminal_setting.html:
20
common/views.py:47
msgid "Email setting"
msgstr "邮件设置"
#: common/templates/common/basic_setting.html:21
#: common/templates/common/email_setting.html:21
#: common/templates/common/ldap_setting.html:21
#: common/templates/common/terminal_setting.html:2
1
common/views.py:73
#: common/templates/common/terminal_setting.html:2
4
common/views.py:73
msgid "LDAP setting"
msgstr "LDAP设置"
#: common/templates/common/basic_setting.html:24
#: common/templates/common/email_setting.html:24
#: common/templates/common/ldap_setting.html:24
#: common/templates/common/terminal_setting.html:2
4 common/views.py:102
#: common/templates/common/terminal_setting.html:2
8 common/views.py:103
msgid "Terminal setting"
msgstr "终端设置"
...
...
@@ -1245,17 +1264,24 @@ msgstr "终端设置"
msgid "Test connection"
msgstr "测试连接"
#: common/templates/common/terminal_setting.html:63
#: common/templates/common/terminal_setting.html:68
#: common/templates/common/terminal_setting.html:89
#: users/templates/users/login_log_list.html:50
msgid "Type"
msgstr "类型"
#: common/views.py:20 common/views.py:46 common/views.py:72 common/views.py:101
#: 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:66
msgid "Settings"
msgstr "系统设置"
#: common/views.py:31 common/views.py:57 common/views.py:85 common/views.py:11
3
#: common/views.py:31 common/views.py:57 common/views.py:85 common/views.py:11
5
msgid "Update setting successfully, please restart program"
msgstr "更新设置成功, 请手动重启程序"
...
...
@@ -1527,7 +1553,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:6
3
templates/_nav.html:13
#: perms/templates/perms/asset_permission_list.html:6
8
templates/_nav.html:13
#: 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
...
...
@@ -1536,7 +1562,7 @@ msgstr "用户组"
#: perms/models.py:21 perms/models.py:78
#: perms/templates/perms/asset_permission_detail.html:86
#: perms/templates/perms/asset_permission_list.html:
66
users/models/user.py:49
#: perms/templates/perms/asset_permission_list.html:
71
users/models/user.py:49
#: users/templates/users/user_detail.html:95
#: users/templates/users/user_profile.html:96
msgid "Date expired"
...
...
@@ -1611,7 +1637,7 @@ msgstr "系统用户数量"
msgid "Select system users"
msgstr "选择系统用户"
#: perms/templates/perms/asset_permission_list.html:5
3
#: perms/templates/perms/asset_permission_list.html:5
8
msgid "Create permission"
msgstr "创建授权规则"
...
...
@@ -1662,7 +1688,7 @@ msgstr "帮助"
#: 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
5
#: users/templates/users/user_pubkey_update.html:37 users/views/user.py:31
3
msgid "Profile"
msgstr "个人信息"
...
...
@@ -1700,7 +1726,7 @@ msgstr ""
"</a> 补充完整\n"
" "
#: templates/_message.html:1
6
#: templates/_message.html:1
7
#, python-format
msgid ""
"\n"
...
...
@@ -1721,7 +1747,7 @@ msgstr "关闭"
#: users/views/group.py:62 users/views/group.py:79 users/views/login.py:200
#: users/views/login.py:249 users/views/user.py:57 users/views/user.py:72
#: users/views/user.py:91 users/views/user.py:147 users/views/user.py:300
#: users/views/user.py:31
4 users/views/user.py:351 users/views/user.py:373
#: users/views/user.py:31
2 users/views/user.py:348 users/views/user.py:370
msgid "Users"
msgstr "用户管理"
...
...
@@ -1815,10 +1841,6 @@ msgstr "SSH端口"
msgid "HTTP Port"
msgstr "HTTP端口"
#: terminal/models.py:20
msgid "Replay storage"
msgstr "录像存储"
#: terminal/models.py:91
msgid "Session Online"
msgstr "在线会话"
...
...
@@ -2175,7 +2197,7 @@ msgstr "导入"
#: users/templates/users/_user_import_modal.html:6
msgid "Download template or use export csv format"
msgstr "下载模板"
msgstr "下载模板
或使用导出的csv格式
"
#: users/templates/users/_user_import_modal.html:14
msgid "Users csv file"
...
...
@@ -2241,7 +2263,7 @@ msgstr "城市"
#: users/templates/users/reset_password.html:45
#: users/templates/users/user_detail.html:325
#: users/templates/users/user_profile.html:13
6
users/utils.py:71
#: users/templates/users/user_profile.html:13
2
users/utils.py:71
msgid "Reset password"
msgstr "重置密码"
...
...
@@ -2249,11 +2271,6 @@ 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:72
msgid "Create user"
...
...
@@ -2308,7 +2325,7 @@ msgid ""
msgstr "重设秘钥邮件将会发送到用户邮箱"
#: users/templates/users/user_detail.html:350
#: users/templates/users/user_profile.html:14
4
#: users/templates/users/user_profile.html:14
0
msgid "Reset SSH public key"
msgstr "重置SSH密钥"
...
...
@@ -2317,14 +2334,14 @@ msgid "This will reset the user public key and send a reset mail"
msgstr "将会失效用户当前秘钥,并发送重置邮件到用户邮箱"
#: users/templates/users/user_detail.html:377
#: users/templates/users/user_profile.html:1
70
#: users/templates/users/user_profile.html:1
66
msgid "Successfully updated the SSH public key."
msgstr "更新ssh密钥成功"
#: users/templates/users/user_detail.html:378
#: users/templates/users/user_detail.html:382
#: users/templates/users/user_profile.html:1
71
#: users/templates/users/user_profile.html:17
6
#: users/templates/users/user_profile.html:1
67
#: users/templates/users/user_profile.html:17
2
msgid "User SSH public key update"
msgstr "ssh密钥"
...
...
@@ -2389,11 +2406,7 @@ msgstr ""
msgid "User groups"
msgstr "用户组"
#: users/templates/users/user_profile.html:114
msgid "Perm assets"
msgstr "资产"
#: users/templates/users/user_profile.html:174
#: users/templates/users/user_profile.html:170
msgid "Failed to update SSH public key."
msgstr "更新密钥失败"
...
...
@@ -2612,15 +2625,15 @@ msgstr "文件不合法"
msgid "User granted assets"
msgstr "用户授权资产"
#: users/views/user.py:33
4
#: users/views/user.py:33
1
msgid "Profile setting"
msgstr "个人信息设置"
#: users/views/user.py:3
52
#: users/views/user.py:3
49
msgid "Password update"
msgstr "密码更新"
#: users/views/user.py:37
4
#: users/views/user.py:37
1
msgid "Public key update"
msgstr "秘钥更新"
apps/jumpserver/settings.py
View file @
05255f85
...
...
@@ -17,7 +17,6 @@ import ldap
from
django_auth_ldap.config
import
LDAPSearch
from
django.urls
import
reverse_lazy
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
PROJECT_DIR
=
os
.
path
.
dirname
(
BASE_DIR
)
...
...
@@ -39,11 +38,9 @@ SECRET_KEY = CONFIG.SECRET_KEY
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
CONFIG
.
DEBUG
or
False
# Absolute url for some case, for example email link
SITE_URL
=
CONFIG
.
SITE_URL
or
'http://localhost'
# LOG LEVEL
LOG_LEVEL
=
'DEBUG'
if
DEBUG
else
CONFIG
.
LOG_LEVEL
or
'WARNING'
...
...
@@ -114,7 +111,7 @@ LOGIN_URL = reverse_lazy('users:login')
SESSION_COOKIE_DOMAIN
=
CONFIG
.
SESSION_COOKIE_DOMAIN
or
None
CSRF_COOKIE_DOMAIN
=
CONFIG
.
CSRF_COOKIE_DOMAIN
or
None
SESSION_COOKIE_AGE
=
CONFIG
.
SESSION_COOKIE_AGE
or
3600
*
24
SESSION_COOKIE_AGE
=
CONFIG
.
SESSION_COOKIE_AGE
or
3600
*
24
MESSAGE_STORAGE
=
'django.contrib.messages.storage.cookie.CookieStorage'
# Database
...
...
@@ -250,7 +247,6 @@ STATIC_URL = '/static/'
STATIC_ROOT
=
os
.
path
.
join
(
PROJECT_DIR
,
"data"
,
"static"
)
STATIC_DIR
=
os
.
path
.
join
(
BASE_DIR
,
"static"
)
STATICFILES_DIRS
=
(
os
.
path
.
join
(
BASE_DIR
,
"static"
),
)
...
...
@@ -265,7 +261,7 @@ MEDIA_ROOT = os.path.join(PROJECT_DIR, 'data', 'media').replace('\\', '/') + '/'
# BOOTSTRAP_COLUMN_COUNT = 11
# Init data or generate fake data source for development
FIXTURE_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'fixtures'
),]
FIXTURE_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'fixtures'
),
]
# Email config
EMAIL_HOST
=
CONFIG
.
EMAIL_HOST
...
...
@@ -308,7 +304,6 @@ AUTHENTICATION_BACKENDS = [
# Custom User Auth model
AUTH_USER_MODEL
=
'users.User'
# Auth LDAP settings
AUTH_LDAP
=
CONFIG
.
AUTH_LDAP
AUTH_LDAP_SERVER_URI
=
CONFIG
.
AUTH_LDAP_SERVER_URI
...
...
@@ -332,7 +327,6 @@ AUTH_LDAP_BACKEND = 'django_auth_ldap.backend.LDAPBackend'
if
AUTH_LDAP
:
AUTHENTICATION_BACKENDS
.
insert
(
0
,
AUTH_LDAP_BACKEND
)
# Celery using redis as broker
CELERY_BROKER_URL
=
'redis://:
%(password)
s@
%(host)
s:
%(port)
s/3'
%
{
'password'
:
CONFIG
.
REDIS_PASSWORD
if
CONFIG
.
REDIS_PASSWORD
else
''
,
...
...
@@ -354,7 +348,6 @@ CELERY_REDIRECT_STDOUTS = True
CELERY_REDIRECT_STDOUTS_LEVEL
=
"INFO"
CELERY_WORKER_HIJACK_ROOT_LOGGER
=
False
# Cache use redis
CACHES
=
{
'default'
:
{
...
...
@@ -387,6 +380,11 @@ TERMINAL_COMMAND_STORAGE = {
# },
}
TERMINAL_REPLAY_STORAGE
=
{
"default"
:
{
"TYPE"
:
"server"
,
},
}
# Django bootstrap3 setting, more see http://django-bootstrap3.readthedocs.io/en/latest/settings.html
BOOTSTRAP3
=
{
...
...
apps/perms/templates/perms/asset_permission_list.html
View file @
05255f85
...
...
@@ -49,7 +49,7 @@
<div
class=
"col-lg-9 animated fadeInRight"
id=
"split-right"
>
<div
class=
"tree-toggle"
>
<div
class=
"btn btn-sm btn-primary tree-toggle-btn"
onclick=
"toggle()"
>
<i
class=
"fa fa-angle-left fa-
2
x"
id=
"toggle-icon"
></i>
<i
class=
"fa fa-angle-left fa-x"
id=
"toggle-icon"
></i>
</div>
</div>
<div
class=
"mail-box-header"
>
...
...
@@ -200,12 +200,12 @@ function toggle() {
if
(
show
===
0
)
{
$
(
"#split-left"
).
hide
(
500
,
function
()
{
$
(
"#split-right"
).
attr
(
"class"
,
"col-lg-12"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-right fa-
2
x"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-right fa-x"
);
show
=
1
;
});
}
else
{
$
(
"#split-right"
).
attr
(
"class"
,
"col-lg-9"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-left fa-
2
x"
);
$
(
"#toggle-icon"
).
attr
(
"class"
,
"fa fa-angle-left fa-x"
);
$
(
"#split-left"
).
show
(
500
);
show
=
0
;
}
...
...
apps/templates/base.html
View file @
05255f85
...
...
@@ -17,8 +17,8 @@
{% include '_left_side_bar.html' %}
<div
id=
"page-wrapper"
class=
"gray-bg"
>
{% include '_header_bar.html' %}
{% include '_message.html' %}
{% block help_message %} {% endblock %}
{% include '_message.html' %}
{% block content %}{% endblock %}
{% include '_footer.html' %}
</div>
...
...
apps/users/migrations/0001_initial.py
View file @
05255f85
...
...
@@ -28,6 +28,9 @@ def add_default_admin(apps, schema_editor):
email
=
"admin@mycomany.com"
,
role
=
"Admin"
,
password
=
make_password
(
"admin"
),
)
group_model
=
apps
.
get_model
(
"users"
,
"UserGroup"
)
default_group
=
group_model
.
objects
.
using
(
db_alias
)
.
get
(
name
=
"Default"
)
admin
.
groups
.
add
(
default_group
)
class
Migration
(
migrations
.
Migration
):
...
...
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