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
c11374ae
Commit
c11374ae
authored
Apr 07, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修改翻译
parent
92ebe85a
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
619 additions
and
1149 deletions
+619
-1149
terminal_detail.html
.../applications/templates/applications/terminal_detail.html
+2
-2
views.py
apps/applications/views.py
+1
-1
forms.py
apps/assets/forms.py
+9
-13
asset.py
apps/assets/models/asset.py
+3
-3
group.py
apps/assets/models/group.py
+1
-1
idc.py
apps/assets/models/idc.py
+1
-1
_asset_bulk_update_modal.html
apps/assets/templates/assets/_asset_bulk_update_modal.html
+4
-4
_asset_group_bulk_update_modal.html
...sets/templates/assets/_asset_group_bulk_update_modal.html
+1
-1
asset_detail.html
apps/assets/templates/assets/asset_detail.html
+7
-7
asset_group_list.html
apps/assets/templates/assets/asset_group_list.html
+2
-2
idc_assets.html
apps/assets/templates/assets/idc_assets.html
+2
-2
idc_list.html
apps/assets/templates/assets/idc_list.html
+1
-1
system_user_asset.html
apps/assets/templates/assets/system_user_asset.html
+16
-16
system_user_asset_group.html
apps/assets/templates/assets/system_user_asset_group.html
+0
-134
system_user_detail.html
apps/assets/templates/assets/system_user_detail.html
+3
-11
admin_user.py
apps/assets/views/admin_user.py
+4
-4
system_user.py
apps/assets/views/system_user.py
+8
-10
settings.py
apps/jumpserver/settings.py
+5
-1
django.po
apps/locale/zh/LC_MESSAGES/django.po
+493
-885
models.py
apps/ops/models.py
+1
-1
task_detail.html
apps/ops/templates/ops/task_detail.html
+1
-1
asset_permission_asset.html
apps/perms/templates/perms/asset_permission_asset.html
+1
-1
views.py
apps/perms/views.py
+13
-10
_base_list.html
apps/templates/_base_list.html
+4
-3
_nav.html
apps/templates/_nav.html
+1
-1
base.html
apps/templates/base.html
+0
-1
forms.py
apps/users/forms.py
+0
-8
group.py
apps/users/models/group.py
+2
-1
_user_bulk_update_modal.html
apps/users/templates/users/_user_bulk_update_modal.html
+1
-1
user_detail.html
apps/users/templates/users/user_detail.html
+5
-5
user_group_create_update.html
apps/users/templates/users/user_group_create_update.html
+1
-1
user_group_detail.html
apps/users/templates/users/user_group_detail.html
+1
-1
user_group_list.html
apps/users/templates/users/user_group_list.html
+3
-2
user_profile.html
apps/users/templates/users/user_profile.html
+1
-1
group.py
apps/users/views/group.py
+12
-2
user.py
apps/users/views/user.py
+8
-8
deb_requirements.txt
requirements/deb_requirements.txt
+1
-2
No files found.
apps/applications/templates/applications/terminal_detail.html
View file @
c11374ae
...
@@ -44,11 +44,11 @@
...
@@ -44,11 +44,11 @@
<td><b>
{{ terminal.name }}
</b></td>
<td><b>
{{ terminal.name }}
</b></td>
</tr>
</tr>
<tr>
<tr>
<td>
{% trans 'Remote addr' %}:
</td>
<td>
{% trans 'Remote addr
ess
' %}:
</td>
<td><b>
{{ terminal.remote_addr }}
</b></td>
<td><b>
{{ terminal.remote_addr }}
</b></td>
</tr>
</tr>
<tr>
<tr>
<td>
{% trans '
Terminal url
' %}:
</td>
<td>
{% trans '
URL to login
' %}:
</td>
<td><b>
{{ terminal.url }}
</b></td>
<td><b>
{{ terminal.url }}
</b></td>
</tr>
</tr>
<tr>
<tr>
...
...
apps/applications/views.py
View file @
c11374ae
...
@@ -97,7 +97,7 @@ class TerminalConnectView(LoginRequiredMixin, DetailView):
...
@@ -97,7 +97,7 @@ class TerminalConnectView(LoginRequiredMixin, DetailView):
if
self
.
object
.
type
==
'Web'
:
if
self
.
object
.
type
==
'Web'
:
context
=
{
context
=
{
'title'
:
_
(
'Redirect to web terminal'
),
'title'
:
_
(
'Redirect to web terminal'
),
'messages'
:
_
(
'Redirect to web terminal
: {}'
.
format
(
self
.
object
.
url
))
,
'messages'
:
_
(
'Redirect to web terminal
'
)
+
self
.
object
.
url
,
'auto_redirect'
:
True
,
'auto_redirect'
:
True
,
'interval'
:
3
,
'interval'
:
3
,
'redirect_url'
:
self
.
object
.
url
'redirect_url'
:
self
.
object
.
url
...
...
apps/assets/forms.py
View file @
c11374ae
...
@@ -80,13 +80,8 @@ class AssetGroupForm(forms.ModelForm):
...
@@ -80,13 +80,8 @@ class AssetGroupForm(forms.ModelForm):
class
Meta
:
class
Meta
:
model
=
AssetGroup
model
=
AssetGroup
fields
=
[
fields
=
[
"name"
,
"comment"
,
"system_users"
,
"name"
,
"comment"
,
]
]
widgets
=
{
'name'
:
forms
.
TextInput
(
attrs
=
{}),
'system_users'
:
forms
.
SelectMultiple
(
attrs
=
{
'class'
:
'select2-system-user'
,
'data-placeholder'
:
_
(
'Select asset system user'
)}),
}
help_texts
=
{
help_texts
=
{
'name'
:
'* required'
,
'name'
:
'* required'
,
}
}
...
@@ -94,12 +89,13 @@ class AssetGroupForm(forms.ModelForm):
...
@@ -94,12 +89,13 @@ class AssetGroupForm(forms.ModelForm):
class
IDCForm
(
forms
.
ModelForm
):
class
IDCForm
(
forms
.
ModelForm
):
# See AdminUserForm comment same it
# See AdminUserForm comment same it
assets
=
forms
.
ModelMultipleChoiceField
(
queryset
=
Asset
.
objects
.
all
(),
assets
=
forms
.
ModelMultipleChoiceField
(
label
=
_
(
'Asset'
),
queryset
=
Asset
.
objects
.
all
(),
required
=
False
,
label
=
_
(
'Asset'
),
widget
=
forms
.
SelectMultiple
(
required
=
False
,
attrs
=
{
'class'
:
'select2'
,
'data-placeholder'
:
_
(
'Select assets'
)})
widget
=
forms
.
SelectMultiple
(
)
attrs
=
{
'class'
:
'select2'
,
'data-placeholder'
:
_
(
'Select assets'
)})
)
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
if
kwargs
.
get
(
'instance'
):
if
kwargs
.
get
(
'instance'
):
...
@@ -249,7 +245,7 @@ class SystemUserForm(forms.ModelForm):
...
@@ -249,7 +245,7 @@ class SystemUserForm(forms.ModelForm):
key_string
=
self
.
cleaned_data
[
'private_key_file'
]
.
read
()
key_string
=
self
.
cleaned_data
[
'private_key_file'
]
.
read
()
self
.
cleaned_data
[
'private_key_file'
]
.
seek
(
0
)
self
.
cleaned_data
[
'private_key_file'
]
.
seek
(
0
)
if
not
validate_ssh_private_key
(
key_string
):
if
not
validate_ssh_private_key
(
key_string
):
raise
forms
.
ValidationError
(
_
(
'
Private key invalid
'
))
raise
forms
.
ValidationError
(
_
(
'
Invalid private key
'
))
return
self
.
cleaned_data
[
'private_key_file'
]
return
self
.
cleaned_data
[
'private_key_file'
]
def
clean_password
(
self
):
def
clean_password
(
self
):
...
...
apps/assets/models/asset.py
View file @
c11374ae
...
@@ -76,12 +76,12 @@ class Asset(models.Model):
...
@@ -76,12 +76,12 @@ class Asset(models.Model):
platform
=
models
.
CharField
(
max_length
=
128
,
null
=
True
,
blank
=
True
,
verbose_name
=
'Platform'
)
platform
=
models
.
CharField
(
max_length
=
128
,
null
=
True
,
blank
=
True
,
verbose_name
=
'Platform'
)
os
=
models
.
CharField
(
max_length
=
128
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'OS'
))
os
=
models
.
CharField
(
max_length
=
128
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'OS'
))
os_version
=
models
.
CharField
(
max_length
=
16
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'OS
V
ersion'
))
os_version
=
models
.
CharField
(
max_length
=
16
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'OS
v
ersion'
))
os_arch
=
models
.
CharField
(
max_length
=
16
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'OS
A
rch'
))
os_arch
=
models
.
CharField
(
max_length
=
16
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'OS
a
rch'
))
hostname_raw
=
models
.
CharField
(
max_length
=
128
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Hostname raw'
))
hostname_raw
=
models
.
CharField
(
max_length
=
128
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Hostname raw'
))
created_by
=
models
.
CharField
(
max_length
=
32
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'Created by'
))
created_by
=
models
.
CharField
(
max_length
=
32
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'Created by'
))
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'Date
add
ed'
))
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'Date
creat
ed'
))
comment
=
models
.
TextField
(
max_length
=
128
,
default
=
''
,
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
comment
=
models
.
TextField
(
max_length
=
128
,
default
=
''
,
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
def
__unicode__
(
self
):
def
__unicode__
(
self
):
...
...
apps/assets/models/group.py
View file @
c11374ae
...
@@ -18,7 +18,7 @@ class AssetGroup(models.Model):
...
@@ -18,7 +18,7 @@ class AssetGroup(models.Model):
name
=
models
.
CharField
(
max_length
=
64
,
unique
=
True
,
verbose_name
=
_
(
'Name'
))
name
=
models
.
CharField
(
max_length
=
64
,
unique
=
True
,
verbose_name
=
_
(
'Name'
))
system_users
=
models
.
ManyToManyField
(
SystemUser
,
related_name
=
'asset_groups'
,
blank
=
True
)
system_users
=
models
.
ManyToManyField
(
SystemUser
,
related_name
=
'asset_groups'
,
blank
=
True
)
created_by
=
models
.
CharField
(
max_length
=
32
,
blank
=
True
,
verbose_name
=
_
(
'Created by'
))
created_by
=
models
.
CharField
(
max_length
=
32
,
blank
=
True
,
verbose_name
=
_
(
'Created by'
))
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
null
=
True
,
verbose_name
=
_
(
'Date
add
ed'
))
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
null
=
True
,
verbose_name
=
_
(
'Date
creat
ed'
))
comment
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
comment
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
def
__unicode__
(
self
):
def
__unicode__
(
self
):
...
...
apps/assets/models/idc.py
View file @
c11374ae
...
@@ -27,7 +27,7 @@ class IDC(models.Model):
...
@@ -27,7 +27,7 @@ class IDC(models.Model):
intranet
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Intranet'
))
intranet
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Intranet'
))
extranet
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Extranet'
))
extranet
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Extranet'
))
date_created
=
models
.
DateTimeField
(
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
null
=
True
,
verbose_name
=
_
(
'Date
add
ed'
))
auto_now_add
=
True
,
null
=
True
,
verbose_name
=
_
(
'Date
creat
ed'
))
operator
=
models
.
CharField
(
operator
=
models
.
CharField
(
max_length
=
32
,
blank
=
True
,
verbose_name
=
_
(
'Operator'
))
max_length
=
32
,
blank
=
True
,
verbose_name
=
_
(
'Operator'
))
created_by
=
models
.
CharField
(
created_by
=
models
.
CharField
(
...
...
apps/assets/templates/assets/_asset_bulk_update_modal.html
View file @
c11374ae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
<form
method=
"post"
class=
"form-horizontal"
action=
""
id=
"fm_asset_bulk_update"
>
<form
method=
"post"
class=
"form-horizontal"
action=
""
id=
"fm_asset_bulk_update"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 col-lg-2 "
for=
"id_type"
>
{% trans "
System T
ype" %}
</label>
<label
class=
"control-label col-sm-2 col-lg-2 "
for=
"id_type"
>
{% trans "
Asset t
ype" %}
</label>
<div
class=
" col-sm-9 col-lg-9 "
>
<div
class=
" col-sm-9 col-lg-9 "
>
<select
class=
" select2 form-control"
id=
"id_type"
name=
"type"
>
<select
class=
" select2 form-control"
id=
"id_type"
name=
"type"
>
<option
value=
""
>
---------
</option>
<option
value=
""
>
---------
</option>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"groups"
class=
"col-sm-2 control-label"
>
{% trans 'Asset Groups' %}
</label>
<label
for=
"groups"
class=
"col-sm-2 control-label"
>
{% trans 'Asset Groups' %}
</label>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<select
name=
"groups"
id=
"select2_groups"
data-placeholder=
"{% trans 'Select
Group
' %}"
class=
"select2 form-control m-b"
multiple
>
<select
name=
"groups"
id=
"select2_groups"
data-placeholder=
"{% trans 'Select
groups
' %}"
class=
"select2 form-control m-b"
multiple
>
{% for group in groups %}
{% for group in groups %}
<option
value=
"{{ group.id }}"
>
{{ group.name }}
</option>
<option
value=
"{{ group.id }}"
>
{{ group.name }}
</option>
{% endfor %}
{% endfor %}
...
@@ -43,9 +43,9 @@
...
@@ -43,9 +43,9 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"users"
class=
"col-sm-2 control-label"
>
{% trans 'System
U
sers' %}
</label>
<label
for=
"users"
class=
"col-sm-2 control-label"
>
{% trans 'System
u
sers' %}
</label>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<select
name=
"system_users"
id=
"select2_users"
data-placeholder=
"{% trans 'Select
System U
sers' %}"
class=
"select2 form-control m-b"
multiple
>
<select
name=
"system_users"
id=
"select2_users"
data-placeholder=
"{% trans 'Select
system u
sers' %}"
class=
"select2 form-control m-b"
multiple
>
{% for system_user in system_users %}
{% for system_user in system_users %}
<option
value=
"{{ system_user.id }}"
>
{{ system_user.name }}
</option>
<option
value=
"{{ system_user.id }}"
>
{{ system_user.name }}
</option>
{% endfor %}
{% endfor %}
...
...
apps/assets/templates/assets/_asset_group_bulk_update_modal.html
View file @
c11374ae
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"system_users"
class=
"col-sm-2 control-label"
>
{% trans 'System
U
sers' %}
</label>
<label
for=
"system_users"
class=
"col-sm-2 control-label"
>
{% trans 'System
u
sers' %}
</label>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<select
name=
"system_users"
id=
"select2_groups"
data-placeholder=
"{% trans 'Select System Users' %}"
class=
"select2 form-control m-b"
multiple
>
<select
name=
"system_users"
id=
"select2_groups"
data-placeholder=
"{% trans 'Select System Users' %}"
class=
"select2 form-control m-b"
multiple
>
{% for system_user in system_users %}
{% for system_user in system_users %}
...
...
apps/assets/templates/assets/asset_detail.html
View file @
c11374ae
...
@@ -85,11 +85,11 @@
...
@@ -85,11 +85,11 @@
<td><b>
{{ asset.idc.name }}
</b></td>
<td><b>
{{ asset.idc.name }}
</b></td>
</tr>
</tr>
<tr>
<tr>
<td>
{% trans 'Cabinet n
o
' %}:
</td>
<td>
{% trans 'Cabinet n
umber
' %}:
</td>
<td><b>
{{ asset.cabinet_no }}
</b></td>
<td><b>
{{ asset.cabinet_no }}
</b></td>
</tr>
</tr>
<tr>
<tr>
<td>
{% trans 'Cabinet pos' %}:
</td>
<td>
{% trans 'Cabinet pos
ition
' %}:
</td>
<td><b>
{{ asset.cabinet_pos }}
</b></td>
<td><b>
{{ asset.cabinet_pos }}
</b></td>
</tr>
</tr>
<tr>
<tr>
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
</span></td>
</span></td>
</tr>
</tr>
<tr>
<tr>
<td>
{% trans 'R
r
efresh hardware' %}:
</td>
<td>
{% trans 'Refresh hardware' %}:
</td>
<td>
<td>
<span
class=
"pull-right"
>
<span
class=
"pull-right"
>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
id=
"btn_refresh_asset"
style=
"width: 54px"
>
{% trans 'Refresh' %}
</button>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
id=
"btn_refresh_asset"
style=
"width: 54px"
>
{% trans 'Refresh' %}
</button>
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"2"
class=
"no-borders"
>
<td
colspan=
"2"
class=
"no-borders"
>
<button
type=
"button"
class=
"btn btn-info btn-sm"
id=
"btn_add_user_group"
>
{% trans '
Join
' %}
</button>
<button
type=
"button"
class=
"btn btn-info btn-sm"
id=
"btn_add_user_group"
>
{% trans '
Confirm
' %}
</button>
</td>
</td>
</tr>
</tr>
</form>
</form>
...
@@ -251,7 +251,7 @@
...
@@ -251,7 +251,7 @@
<form>
<form>
<tr
class=
"no-borders-tr"
>
<tr
class=
"no-borders-tr"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<select
data-placeholder=
"{% trans 'Select system user' %}"
class=
"select2"
style=
"width: 100%"
multiple=
""
tabindex=
"4"
>
<select
data-placeholder=
"{% trans 'Select system user
s
' %}"
class=
"select2"
style=
"width: 100%"
multiple=
""
tabindex=
"4"
>
{% for system_user in system_users_remain %}
{% for system_user in system_users_remain %}
<option
value=
"{{ system_user.id }}"
id=
"opt_{{ system_user.id }}"
>
{{ system_user.name }}
</option>
<option
value=
"{{ system_user.id }}"
id=
"opt_{{ system_user.id }}"
>
{{ system_user.name }}
</option>
{% endfor %}
{% endfor %}
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tr>
</tr>
<tr
class=
"no-borders-tr"
>
<tr
class=
"no-borders-tr"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<button
type=
"button"
class=
"btn btn-warning btn-sm btn-system-user"
>
{% trans '
Associate
' %}
</button>
<button
type=
"button"
class=
"btn btn-warning btn-sm btn-system-user"
>
{% trans '
Confirm
' %}
</button>
</td>
</td>
</tr>
</tr>
</form>
</form>
...
@@ -371,7 +371,7 @@ $(document).ready(function () {
...
@@ -371,7 +371,7 @@ $(document).ready(function () {
var
body
=
{
var
body
=
{
'is_active'
:
checked
'is_active'
:
checked
};
};
var
success
=
'{% trans "Update
S
uccessfully!" %}'
;
var
success
=
'{% trans "Update
s
uccessfully!" %}'
;
var
status
=
$
(
".ibox-content > table > tbody > tr:nth-child(13) > td:last >b"
).
text
();
var
status
=
$
(
".ibox-content > table > tbody > tr:nth-child(13) > td:last >b"
).
text
();
APIUpdateAttr
({
APIUpdateAttr
({
url
:
the_url
,
url
:
the_url
,
...
...
apps/assets/templates/assets/asset_group_list.html
View file @
c11374ae
...
@@ -101,12 +101,12 @@ $(document).ready(function(){
...
@@ -101,12 +101,12 @@ $(document).ready(function(){
closeOnConfirm
:
false
closeOnConfirm
:
false
},
function
()
{
},
function
()
{
var
success
=
function
()
{
var
success
=
function
()
{
var
msg
=
"{% trans 'Group
Deleted.
' %}"
;
var
msg
=
"{% trans 'Group
deleted
' %}"
;
swal
(
"{% trans 'Group Delete' %}"
,
msg
,
"success"
);
swal
(
"{% trans 'Group Delete' %}"
,
msg
,
"success"
);
$
(
'#asset_groups_list_table'
).
DataTable
().
ajax
.
reload
();
$
(
'#asset_groups_list_table'
).
DataTable
().
ajax
.
reload
();
};
};
var
fail
=
function
()
{
var
fail
=
function
()
{
var
msg
=
"{% trans 'Group
D
eleting failed.' %}"
;
var
msg
=
"{% trans 'Group
d
eleting failed.' %}"
;
swal
(
"{% trans 'Group Delete' %}"
,
msg
,
"error"
);
swal
(
"{% trans 'Group Delete' %}"
,
msg
,
"error"
);
};
};
var
url_delete
=
the_url
+
'?id__in='
+
JSON
.
stringify
(
plain_id_list
);
var
url_delete
=
the_url
+
'?id__in='
+
JSON
.
stringify
(
plain_id_list
);
...
...
apps/assets/templates/assets/idc_assets.html
View file @
c11374ae
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<div
class=
"col-sm-5"
style=
"padding-left: 0;padding-right: 0"
>
<div
class=
"col-sm-5"
style=
"padding-left: 0;padding-right: 0"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-info-circle"
></i>
{% trans 'A
ttach assets to IDC ' %
}
<i
class=
"fa fa-info-circle"
></i>
{% trans 'A
dd assets to' %} {{ idc.name }
}
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<table
class=
"table"
>
<table
class=
"table"
>
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
</tr>
</tr>
<tr
class=
"no-borders-tr"
>
<tr
class=
"no-borders-tr"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<button
type=
"button"
class=
"btn btn-primary btn-sm btn-asset-attach"
>
{% trans '
Attach Assets
' %}
</button>
<button
type=
"button"
class=
"btn btn-primary btn-sm btn-asset-attach"
>
{% trans '
Confirm
' %}
</button>
</td>
</td>
</tr>
</tr>
</form>
</form>
...
...
apps/assets/templates/assets/idc_list.html
View file @
c11374ae
...
@@ -92,7 +92,7 @@ $(document).ready(function(){
...
@@ -92,7 +92,7 @@ $(document).ready(function(){
function
doDelete
()
{
function
doDelete
()
{
swal
({
swal
({
title
:
"{% trans 'Are you sure?' %}"
,
title
:
"{% trans 'Are you sure?' %}"
,
text
:
"{% trans 'This will delete the selected idc
!!!
' %}"
,
text
:
"{% trans 'This will delete the selected idc' %}"
,
type
:
"warning"
,
type
:
"warning"
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonColor
:
"#DD6B55"
,
...
...
apps/assets/templates/assets/system_user_asset.html
View file @
c11374ae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<a
href=
"{% url 'assets:system-user-detail' pk=system_user.id %}"
class=
"text-center"
><i
class=
"fa fa-laptop"
></i>
{% trans 'Detail' %}
</a>
<a
href=
"{% url 'assets:system-user-detail' pk=system_user.id %}"
class=
"text-center"
><i
class=
"fa fa-laptop"
></i>
{% trans 'Detail' %}
</a>
</li>
</li>
<li
class=
"active"
><a
href=
"{% url 'assets:system-user-asset' pk=system_user.id %}"
class=
"text-center"
>
<li
class=
"active"
><a
href=
"{% url 'assets:system-user-asset' pk=system_user.id %}"
class=
"text-center"
>
<i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'A
ssociate assets and asset group
s' %}
</a>
<i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'A
ttached asset
s' %}
</a>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<div
class=
"col-sm-7"
style=
"padding-left: 0;"
>
<div
class=
"col-sm-7"
style=
"padding-left: 0;"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<div
class=
"ibox-title"
>
<span
style=
"float: left"
>
{% trans 'Assets
attached
of ' %}
<b>
{{ system_user.name }}
</b><span
class=
"badge"
>
{{ paginator.count }}
</span></span>
<span
style=
"float: left"
>
{% trans 'Assets of ' %}
<b>
{{ system_user.name }}
</b><span
class=
"badge"
>
{{ paginator.count }}
</span></span>
<div
class=
"ibox-tools"
>
<div
class=
"ibox-tools"
>
<a
class=
"collapse-link"
>
<a
class=
"collapse-link"
>
<i
class=
"fa fa-chevron-up"
></i>
<i
class=
"fa fa-chevron-up"
></i>
...
@@ -52,19 +52,19 @@
...
@@ -52,19 +52,19 @@
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
{# {% for asset in page_obj %}#
}
{% for asset in page_obj %
}
{#
<tr>
#}
<tr>
{#
<td>
{{ asset.hostname }}
</td>
#}
<td>
{{ asset.hostname }}
</td>
{#
<td>
{{ asset.ip }}
</td>
#}
<td>
{{ asset.ip }}
</td>
{#
<td>
{{ asset.port }}
</td>
#}
<td>
{{ asset.port }}
</td>
{#
<td>
#}
<td>
{#
<i
class=
"fa fa-check text-navy"
></i>
#}
<i
class=
"fa fa-check text-navy"
></i>
{#
</td>
#}
</td>
{#
<td>
#}
<td>
{#
<button
class=
"btn btn-danger pull-right btn-xs {% if asset.is_inherit_from_asset_groups %} disabled {% endif %}"
type=
"button"
><i
class=
"fa fa-minus"
></i></button>
#}
<button
class=
"btn btn-danger pull-right btn-xs {% if asset.is_inherit_from_asset_groups %} disabled {% endif %}"
type=
"button"
><i
class=
"fa fa-minus"
></i></button>
{#
</td>
#}
</td>
{#
</tr>
#}
</tr>
{# {% endfor %}#
}
{% endfor %
}
</tbody>
</tbody>
</table>
</table>
{#
<div
class=
"row"
>
#}
{#
<div
class=
"row"
>
#}
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</tr>
</tr>
<tr
class=
"no-borders-tr"
>
<tr
class=
"no-borders-tr"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<button
type=
"button"
class=
"btn btn-primary btn-sm btn-add-asset2system-user"
>
{% trans '
Attach Asset
' %}
</button>
<button
type=
"button"
class=
"btn btn-primary btn-sm btn-add-asset2system-user"
>
{% trans '
Confirm
' %}
</button>
</td>
</td>
</tr>
</tr>
</form>
</form>
...
...
apps/assets/templates/assets/system_user_asset_group.html
deleted
100644 → 0
View file @
92ebe85a
{% extends 'base.html' %}
{% load static %}
{% load i18n %}
{% block custom_head_css_js %}
<link
href=
"{% static "
css
/
plugins
/
select2
/
select2
.
min
.
css
"
%}"
rel=
"stylesheet"
>
<script
src=
"{% static "
js
/
plugins
/
select2
/
select2
.
full
.
min
.
js
"
%}"
></script>
{% endblock %}
{% block content %}
<div
class=
"wrapper wrapper-content animated fadeInRight"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"panel-options"
>
<ul
class=
"nav nav-tabs"
>
<li>
<a
href=
"{% url 'assets:system-user-detail' pk=system_user.id %}"
class=
"text-center"
><i
class=
"fa fa-laptop"
></i>
{% trans 'Detail' %}
</a>
</li>
<li><a
href=
"{% url 'assets:system-user-asset' pk=system_user.id %}"
class=
"text-center"
>
<i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'Associate assets' %}
</a>
</li>
<li
class=
"active"
>
<a
href=
"{% url 'assets:system-user-asset-group' pk=system_user.id %}"
class=
"text-center"
>
<i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'Associate asset groups' %}
</a>
</li>
</ul>
</div>
<div
class=
"tab-content"
>
<div
class=
"col-sm-7"
style=
"padding-left: 0;"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<span
style=
"float: left"
>
{% trans 'Asset list of ' %}
<b>
{{ admin_user.name }}
</b></span>
<div
class=
"ibox-tools"
>
<a
class=
"collapse-link"
>
<i
class=
"fa fa-chevron-up"
></i>
</a>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
<i
class=
"fa fa-wrench"
></i>
</a>
<ul
class=
"dropdown-menu dropdown-user"
>
</ul>
<a
class=
"close-link"
>
<i
class=
"fa fa-times"
></i>
</a>
</div>
</div>
<div
class=
"ibox-content"
>
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
{% trans 'Name' %}
</th>
<th>
{% trans 'Asset num' %}
</th>
<th>
{% trans 'Unavailable num' %}
</th>
<th>
{% trans 'Comment' %}
</th>
</tr>
</thead>
<tbody>
{% for asset_group in page_obj %}
<tr>
<td>
{{ asset_group.name }}
</td>
<td>
{{ asset_group_group.assets.count }}
</td>
<td>
{{ asset_group_group.assets.count }}
</td>
<td>
{{ asset_group.comment|truncatewords:4 }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div
class=
"row"
>
{% include '_pagination.html' %}
</div>
</div>
</div>
</div>
<div
class=
"col-sm-5"
style=
"padding-left: 0;padding-right: 0"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-info-circle"
></i>
{% trans 'Add asset group to this system user' %}
</div>
<div
class=
"panel-body"
>
<table
class=
"table"
>
<tbody>
<form>
<tr
class=
"no-borders-tr"
>
<td
colspan=
"2"
>
<select
data-placeholder=
"{% trans 'Select asset group' %}"
class=
"select2"
style=
"width: 100%"
multiple=
""
tabindex=
"4"
>
{% for asset_group in asset_groups %}
<option
value=
"{{ asset_group.id }}"
>
{{ asset_group.name}}
</option>
{% endfor %}
</select>
</td>
</tr>
<tr
class=
"no-borders-tr"
>
<td
colspan=
"2"
>
<button
type=
"button"
class=
"btn btn-primary btn-sm"
>
{% trans 'Add' %}
</button>
</td>
</tr>
</form>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block custom_foot_js %}
<script>
{
#
function
switch_user_status
(
obj
)
{
#
}
{
#
var
status
=
$
(
obj
).
prop
(
'checked'
);
#
}
{
##
}
{
#
$
.
ajax
({
#
}
{
#
url
:
"{% url 'users:user-active-api' pk=user.id %}"
,
#
}
{
#
type
:
"PUT"
,
#
}
{
#
data
:
{
#
}
{
#
'is_active'
:
status
#
}
{
#
},
#
}
{
#
success
:
function
(
data
,
status
)
{
#
}
{
#
console
.
log
(
data
)
#
}
{
#
},
#
}
{
#
error
:
function
()
{
#
}
{
#
console
.
log
(
'error'
)
#
}
{
#
}
#
}
{
#
})
#
}
{
#
}
#
}
$
(
document
).
ready
(
function
()
{
$
(
'.select2'
).
select2
();
});
</script>
{% endblock %}
apps/assets/templates/assets/system_user_detail.html
View file @
c11374ae
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</li>
</li>
<li>
<li>
<a
href=
"{% url 'assets:system-user-asset' pk=system_user.id %}"
class=
"text-center"
>
<a
href=
"{% url 'assets:system-user-asset' pk=system_user.id %}"
class=
"text-center"
>
<i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'A
ssociate assets and asset group
s' %}
<i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'A
ttached asset
s' %}
</a>
</a>
</li>
</li>
<li
class=
"pull-right"
>
<li
class=
"pull-right"
>
...
@@ -62,15 +62,7 @@
...
@@ -62,15 +62,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
{% trans 'Auto push' %}:
</td>
<td>
{% trans 'Auto push' %}:
</td>
<td><b>
{{ system_user.protocol }}
</b></td>
<td><b>
{{ system_user.auto_push|yesno:"Yes,No,Unknown" }}
</b></td>
</tr>
<tr>
<td>
{% trans 'Auto update' %}:
</td>
<td><b>
{{ system_user.auto_update }}
</b></td>
</tr>
<tr>
<td>
{% trans 'As default' %}:
</td>
<td><b>
{{ system_user.protocol }}
</b></td>
</tr>
</tr>
<tr>
<tr>
<td>
{% trans 'Sudo' %}:
</td>
<td>
{% trans 'Sudo' %}:
</td>
...
@@ -121,7 +113,7 @@
...
@@ -121,7 +113,7 @@
<table
class=
"table"
>
<table
class=
"table"
>
<tbody>
<tbody>
<tr
class=
"no-borders-tr"
>
<tr
class=
"no-borders-tr"
>
<td
width=
"50%"
>
{% trans 'Get man
n
ual install script' %}:
</td>
<td
width=
"50%"
>
{% trans 'Get manual install script' %}:
</td>
<td>
<td>
<span
style=
"float: right"
>
<span
style=
"float: right"
>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
style=
"width: 54px"
>
{% trans 'Get' %}
</button>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
style=
"width: 54px"
>
{% trans 'Get' %}
</button>
...
...
apps/assets/views/admin_user.py
View file @
c11374ae
...
@@ -49,10 +49,10 @@ class AdminUserCreateView(AdminUserRequiredMixin,
...
@@ -49,10 +49,10 @@ class AdminUserCreateView(AdminUserRequiredMixin,
def
get_success_message
(
self
,
cleaned_data
):
def
get_success_message
(
self
,
cleaned_data
):
success_message
=
_
(
success_message
=
_
(
'Create admin user <a href="
%
s">
%
s</a> successfully.'
%
(
'Create admin user <a href="
{url}">{name}</a> successfully.'
.
format
(
reverse_lazy
(
'assets:admin-user-detail'
,
url
=
reverse_lazy
(
'assets:admin-user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
}),
kwargs
=
{
'pk'
:
self
.
object
.
pk
}),
self
.
object
.
name
,
name
=
self
.
object
.
name
,
))
))
return
success_message
return
success_message
...
...
apps/assets/views/system_user.py
View file @
c11374ae
...
@@ -50,16 +50,13 @@ class SystemUserCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateVi
...
@@ -50,16 +50,13 @@ class SystemUserCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateVi
kwargs
.
update
(
context
)
kwargs
.
update
(
context
)
return
super
(
SystemUserCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
return
super
(
SystemUserCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
def
form_invalid
(
self
,
form
):
print
(
form
.
errors
)
return
super
(
SystemUserCreateView
,
self
)
.
form_invalid
(
form
)
def
get_success_message
(
self
,
cleaned_data
):
def
get_success_message
(
self
,
cleaned_data
):
success_message
=
_
(
'Create system user <a href="
%
s">
%
s</a> successfully.'
%
url
=
reverse_lazy
(
'assets:system-user-detail'
,
(
kwargs
=
{
'pk'
:
self
.
object
.
pk
}),
reverse_lazy
(
'assets:system-user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
}),
success_message
=
_
(
self
.
object
.
name
,
'Create system user <a href="{url}">{name}</a> '
))
'successfully.'
.
format
(
url
=
url
,
name
=
self
.
object
.
name
)
)
return
success_message
return
success_message
...
@@ -78,7 +75,8 @@ class SystemUserUpdateView(AdminUserRequiredMixin, UpdateView):
...
@@ -78,7 +75,8 @@ class SystemUserUpdateView(AdminUserRequiredMixin, UpdateView):
return
super
(
SystemUserUpdateView
,
self
)
.
get_context_data
(
**
kwargs
)
return
super
(
SystemUserUpdateView
,
self
)
.
get_context_data
(
**
kwargs
)
def
get_success_url
(
self
):
def
get_success_url
(
self
):
success_url
=
reverse_lazy
(
'assets:system-user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
})
success_url
=
reverse_lazy
(
'assets:system-user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
})
return
success_url
return
success_url
...
...
apps/jumpserver/settings.py
View file @
c11374ae
...
@@ -112,6 +112,10 @@ SESSION_COOKIE_DOMAIN = CONFIG.SESSION_COOKIE_DOMAIN or None
...
@@ -112,6 +112,10 @@ SESSION_COOKIE_DOMAIN = CONFIG.SESSION_COOKIE_DOMAIN or None
CSRF_COOKIE_DOMAIN
=
CONFIG
.
CSRF_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
print
(
SESSION_COOKIE_DOMAIN
,
CSRF_COOKIE_DOMAIN
)
MESSAGE_STORAGE
=
'django.contrib.messages.storage.cookie.CookieStorage'
# Database
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
...
@@ -327,7 +331,7 @@ CACHES = {
...
@@ -327,7 +331,7 @@ CACHES = {
CAPTCHA_IMAGE_SIZE
=
(
80
,
33
)
CAPTCHA_IMAGE_SIZE
=
(
80
,
33
)
CAPTCHA_FOREGROUND_COLOR
=
'#001100'
CAPTCHA_FOREGROUND_COLOR
=
'#001100'
CAPTCHA_NOISE_FUNCTIONS
=
(
'captcha.helpers.noise_dots'
,)
CAPTCHA_NOISE_FUNCTIONS
=
(
'captcha.helpers.noise_dots'
,)
CAPTCHA_TEST_MODE
=
CONFIG
.
CAPTCHA_TEST_MODE
COMMAND_STORE_BACKEND
=
'audits.backends.command.db'
COMMAND_STORE_BACKEND
=
'audits.backends.command.db'
RECORD_STORE_BACKEND
=
'audits.backends.record.db'
RECORD_STORE_BACKEND
=
'audits.backends.record.db'
CAPTCHA_TEST_MODE
=
CONFIG
.
CAPTCHA_TEST_MODE
apps/locale/zh/LC_MESSAGES/django.po
View file @
c11374ae
...
@@ -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: 2017-0
3-26 13:39
+0800\n"
"POT-Creation-Date: 2017-0
4-06 11:30
+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"
...
@@ -46,6 +46,8 @@ msgstr ""
...
@@ -46,6 +46,8 @@ msgstr ""
#: users/templates/users/user_group_granted_asset.html:88
#: users/templates/users/user_group_granted_asset.html:88
#: users/templates/users/user_group_list.html:12
#: users/templates/users/user_group_list.html:12
#: users/templates/users/user_list.html:25
#: users/templates/users/user_list.html:25
#: users/templates/users/user_profile.html:51
#: users/templates/users/user_pubkey_update.html:53
msgid "Name"
msgid "Name"
msgstr "名称"
msgstr "名称"
...
@@ -59,7 +61,6 @@ msgid "Terminal type"
...
@@ -59,7 +61,6 @@ msgid "Terminal type"
msgstr "终端类型"
msgstr "终端类型"
#: applications/models.py:19
#: applications/models.py:19
#, fuzzy
msgid "URL to login"
msgid "URL to login"
msgstr "登录地址"
msgstr "登录地址"
...
@@ -68,8 +69,8 @@ msgstr "登录地址"
...
@@ -68,8 +69,8 @@ msgstr "登录地址"
#: assets/models/asset.py:85 assets/models/group.py:22 assets/models/idc.py:35
#: assets/models/asset.py:85 assets/models/group.py:22 assets/models/idc.py:35
#: assets/models/user.py:46 assets/models/user.py:157
#: assets/models/user.py:46 assets/models/user.py:157
#: assets/templates/assets/admin_user_detail.html:68
#: assets/templates/assets/admin_user_detail.html:68
#: assets/templates/assets/admin_user_list.html:1
9
#: assets/templates/assets/admin_user_list.html:1
8
#: assets/templates/assets/asset_detail.html:1
29
#: assets/templates/assets/asset_detail.html:1
56
#: assets/templates/assets/asset_group_list.html:17
#: assets/templates/assets/asset_group_list.html:17
#: assets/templates/assets/idc_detail.html:97
#: assets/templates/assets/idc_detail.html:97
#: assets/templates/assets/system_user_asset_group.html:54
#: assets/templates/assets/system_user_asset_group.html:54
...
@@ -80,21 +81,27 @@ msgstr "登录地址"
...
@@ -80,21 +81,27 @@ msgstr "登录地址"
#: users/templates/users/user_detail.html:109
#: users/templates/users/user_detail.html:109
#: users/templates/users/user_group_detail.html:70
#: users/templates/users/user_group_detail.html:70
#: users/templates/users/user_group_list.html:14
#: users/templates/users/user_group_list.html:14
#: users/templates/users/user_profile.html:118
msgid "Comment"
msgid "Comment"
msgstr "备注"
msgstr "备注"
#: applications/templates/applications/terminal_detail.html:13
#: applications/templates/applications/terminal_detail.html:13
#: applications/views.py:5
1
#: applications/views.py:5
2
msgid "Terminal detail"
msgid "Terminal detail"
msgstr "终端详情"
msgstr "终端详情"
#: applications/templates/applications/terminal_detail.html:47
#, fuzzy
#| msgid "Remote address"
msgid "Remote addr"
msgstr "远端地址"
#: applications/templates/applications/terminal_detail.html:51
#: applications/templates/applications/terminal_detail.html:51
msgid "Terminal url"
msgid "Terminal url"
msgstr "终端地址"
msgstr "终端地址"
#: applications/templates/applications/terminal_detail.html:59
#: applications/templates/applications/terminal_detail.html:59
#: assets/templates/assets/admin_user_detail.html:60
#: assets/templates/assets/admin_user_detail.html:60
#: assets/templates/assets/asset_tag_detail.html:51
#: assets/templates/assets/idc_detail.html:89
#: assets/templates/assets/idc_detail.html:89
#: assets/templates/assets/system_user_detail.html:98 perms/models.py:39
#: assets/templates/assets/system_user_detail.html:98 perms/models.py:39
#: perms/templates/perms/asset_permission_detail.html:90
#: perms/templates/perms/asset_permission_detail.html:90
...
@@ -104,12 +111,12 @@ msgstr "创建日期"
...
@@ -104,12 +111,12 @@ msgstr "创建日期"
#: applications/templates/applications/terminal_list.html:30
#: applications/templates/applications/terminal_list.html:30
#: assets/models/asset.py:41 assets/templates/assets/admin_user_detail.html:98
#: assets/models/asset.py:41 assets/templates/assets/admin_user_detail.html:98
#: assets/templates/assets/asset_detail.html:
53
#: assets/templates/assets/asset_detail.html:
60
#: assets/templates/assets/asset_group_detail.html:46
#: assets/templates/assets/asset_group_detail.html:46
#: assets/templates/assets/asset_list.html:55
#: assets/templates/assets/asset_list.html:55
#: assets/templates/assets/asset_tag_detail.html:82
#: assets/templates/assets/idc_assets.html:55
#: assets/templates/assets/idc_assets.html:55
#: assets/templates/assets/system_user_asset.html:48
#: assets/templates/assets/system_user_asset.html:48
#: assets/templates/assets/user_asset_list.html:34
#: audits/templates/audits/login_log_list.html:52
#: audits/templates/audits/login_log_list.html:52
#: perms/templates/perms/asset_permission_asset.html:65
#: perms/templates/perms/asset_permission_asset.html:65
#: users/templates/users/user_granted_asset.html:53
#: users/templates/users/user_granted_asset.html:53
...
@@ -120,8 +127,8 @@ msgstr "IP"
...
@@ -120,8 +127,8 @@ msgstr "IP"
#: applications/templates/applications/terminal_list.html:31
#: applications/templates/applications/terminal_list.html:31
#: assets/templates/assets/asset_group_detail.html:48
#: assets/templates/assets/asset_group_detail.html:48
#: assets/templates/assets/asset_list.html:57
#: assets/templates/assets/asset_list.html:57
#: assets/templates/assets/asset_tag_detail.html:84
#: assets/templates/assets/idc_assets.html:57
#: assets/templates/assets/idc_assets.html:57
#: assets/templates/assets/user_asset_list.html:36
#: audits/templates/audits/login_log_list.html:50
#: audits/templates/audits/login_log_list.html:50
msgid "Type"
msgid "Type"
msgstr "类型"
msgstr "类型"
...
@@ -132,12 +139,13 @@ msgid "Session online"
...
@@ -132,12 +139,13 @@ msgid "Session online"
msgstr "在线session"
msgstr "在线session"
#: applications/templates/applications/terminal_list.html:33
#: applications/templates/applications/terminal_list.html:33
#: assets/templates/assets/asset_detail.html:1
46
#: assets/templates/assets/asset_detail.html:1
74
#: assets/templates/assets/asset_list.html:74 perms/models.py:33
#: assets/templates/assets/asset_list.html:74 perms/models.py:33
#: perms/templates/perms/asset_permission_create_update.html:47
#: perms/templates/perms/asset_permission_create_update.html:47
#: users/templates/users/_select_user_modal.html:18
#: users/templates/users/_select_user_modal.html:18
#: users/templates/users/user_detail.html:126
#: users/templates/users/user_detail.html:126
#: users/templates/users/user_list.html:29
#: users/templates/users/user_list.html:29
#: users/templates/users/user_profile.html:63
msgid "Active"
msgid "Active"
msgstr "激活"
msgstr "激活"
...
@@ -145,17 +153,16 @@ msgstr "激活"
...
@@ -145,17 +153,16 @@ msgstr "激活"
#: assets/templates/assets/admin_user_detail.html:100
#: assets/templates/assets/admin_user_detail.html:100
#: assets/templates/assets/asset_group_detail.html:49
#: assets/templates/assets/asset_group_detail.html:49
#: assets/templates/assets/asset_list.html:61
#: assets/templates/assets/asset_list.html:61
#: assets/templates/assets/user_asset_list.html:40
msgid "Alive"
msgid "Alive"
msgstr "在线"
msgstr "在线"
#: applications/templates/applications/terminal_list.html:35
#: applications/templates/applications/terminal_list.html:35
#: assets/templates/assets/admin_user_detail.html:101
#: assets/templates/assets/admin_user_detail.html:101
#: assets/templates/assets/admin_user_list.html:
20
#: assets/templates/assets/admin_user_list.html:
19
#: assets/templates/assets/asset_group_detail.html:50
#: assets/templates/assets/asset_group_detail.html:50
#: assets/templates/assets/asset_group_list.html:18
#: assets/templates/assets/asset_group_list.html:18
#: assets/templates/assets/asset_list.html:62
#: assets/templates/assets/asset_list.html:62
#: assets/templates/assets/asset_tag_detail.html:86
#: assets/templates/assets/asset_tags_list.html:65
#: assets/templates/assets/idc_list.html:23
#: assets/templates/assets/idc_list.html:23
#: assets/templates/assets/system_user_asset.html:51
#: assets/templates/assets/system_user_asset.html:51
#: assets/templates/assets/system_user_list.html:22
#: assets/templates/assets/system_user_list.html:22
...
@@ -166,32 +173,27 @@ msgstr "在线"
...
@@ -166,32 +173,27 @@ msgstr "在线"
msgid "Action"
msgid "Action"
msgstr "动作"
msgstr "动作"
#: applications/templates/applications/terminal_list.html:7
2
#: applications/templates/applications/terminal_list.html:7
1
#: assets/templates/assets/admin_user_detail.html:305
#: assets/templates/assets/admin_user_detail.html:305
#: assets/templates/assets/admin_user_list.html:
56
#: assets/templates/assets/admin_user_list.html:
43
#: assets/templates/assets/asset_group_detail.html:1
76
#: assets/templates/assets/asset_group_detail.html:1
40
#: assets/templates/assets/asset_group_detail.html:
300
#: assets/templates/assets/asset_group_detail.html:
264
#: assets/templates/assets/asset_group_list.html:55
#: assets/templates/assets/asset_group_list.html:55
#: assets/templates/assets/asset_list.html:131
#: assets/templates/assets/asset_list.html:133
#: assets/templates/assets/asset_tag_detail.html:223
#: assets/templates/assets/asset_tags_list.html:99
#: assets/templates/assets/idc_list.html:55
#: assets/templates/assets/idc_list.html:55
#: assets/templates/assets/system_user_asset.html:256
#: assets/templates/assets/system_user_asset.html:256
#: assets/templates/assets/system_user_list.html:58
#: assets/templates/assets/system_user_list.html:58
#: perms/templates/perms/asset_permission_list.html:44
#: perms/templates/perms/asset_permission_list.html:44
#: users/templates/users/user_group_list.html:50
#: users/templates/users/user_group_list.html:50
#: users/templates/users/user_list.html:78
#: users/templates/users/user_list.html:78
#: users/templates/users/user_profile.html:111
msgid "Update"
msgid "Update"
msgstr "更新"
msgstr "更新"
#: applications/templates/applications/terminal_list.html:7
4
#: applications/templates/applications/terminal_list.html:7
3
#: assets/templates/assets/admin_user_list.html:
57
#: assets/templates/assets/admin_user_list.html:
44
#: assets/templates/assets/asset_group_detail.html:1
75
#: assets/templates/assets/asset_group_detail.html:1
39
#: assets/templates/assets/asset_group_list.html:56
#: assets/templates/assets/asset_group_list.html:56
#: assets/templates/assets/asset_list.html:132
#: assets/templates/assets/asset_list.html:134
#: assets/templates/assets/asset_tag_detail.html:224
#: assets/templates/assets/asset_tags_list.html:100
#: assets/templates/assets/idc_list.html:56
#: assets/templates/assets/idc_list.html:56
#: assets/templates/assets/system_user_asset.html:257
#: assets/templates/assets/system_user_asset.html:257
#: assets/templates/assets/system_user_list.html:59
#: assets/templates/assets/system_user_list.html:59
...
@@ -202,17 +204,21 @@ msgstr "更新"
...
@@ -202,17 +204,21 @@ msgstr "更新"
msgid "Delete"
msgid "Delete"
msgstr "删除"
msgstr "删除"
#: applications/templates/applications/terminal_list.html:7
7
#: applications/templates/applications/terminal_list.html:7
6
msgid "Accept"
msgid "Accept"
msgstr "接受"
msgstr "接受"
#: applications/templates/applications/terminal_list.html:7
9
#: applications/templates/applications/terminal_list.html:7
8
msgid "Reject"
msgid "Reject"
msgstr "拒绝"
msgstr "拒绝"
#: applications/templates/applications/terminal_list.html:81
msgid "Connect"
msgstr "连接"
#: applications/templates/applications/terminal_modal_accept.html:5
#: applications/templates/applications/terminal_modal_accept.html:5
msgid "Accept terminal registration"
msgid "Accept terminal registration"
msgstr "接受终端注册
请求
"
msgstr "接受终端注册"
#: applications/templates/applications/terminal_update.html:33
#: applications/templates/applications/terminal_update.html:33
msgid "Info"
msgid "Info"
...
@@ -220,7 +226,7 @@ msgstr "信息"
...
@@ -220,7 +226,7 @@ msgstr "信息"
#: applications/templates/applications/terminal_update.html:40
#: applications/templates/applications/terminal_update.html:40
#: assets/templates/assets/_system_user.html:70
#: assets/templates/assets/_system_user.html:70
#: assets/templates/assets/asset_create.html:3
1
#: assets/templates/assets/asset_create.html:3
2
#: assets/templates/assets/asset_update.html:46
#: assets/templates/assets/asset_update.html:46
#: perms/templates/perms/asset_permission_create_update.html:45
#: perms/templates/perms/asset_permission_create_update.html:45
msgid "Other"
msgid "Other"
...
@@ -230,28 +236,31 @@ msgstr "其它"
...
@@ -230,28 +236,31 @@ msgstr "其它"
#: assets/templates/assets/_system_user.html:76
#: assets/templates/assets/_system_user.html:76
#: assets/templates/assets/admin_user_create_update.html:46
#: assets/templates/assets/admin_user_create_update.html:46
#: assets/templates/assets/admin_user_detail.html:151
#: assets/templates/assets/admin_user_detail.html:151
#: assets/templates/assets/asset_create.html:
39
#: assets/templates/assets/asset_create.html:
40
#: assets/templates/assets/asset_modal_update.html:78
#: assets/templates/assets/asset_modal_update.html:78
#: assets/templates/assets/asset_update.html:5
6
#: assets/templates/assets/asset_update.html:5
5
#: assets/templates/assets/idc_create_update.html:51
#: assets/templates/assets/idc_create_update.html:51
#: assets/templates/assets/system_user_detail.html:145
#: assets/templates/assets/system_user_detail.html:145
#: perms/templates/perms/asset_permission_create_update.html:67
#: perms/templates/perms/asset_permission_create_update.html:67
#: users/templates/users/_user.html:49
#: users/templates/users/_user.html:49
#: users/templates/users/user_detail.html:158
#: users/templates/users/user_detail.html:158
#: users/templates/users/user_detail.html:166
#: users/templates/users/user_detail.html:166
#: users/templates/users/user_password_update.html:58
#: users/templates/users/user_profile.html:139
#: users/templates/users/user_profile.html:147
#: users/templates/users/user_profile_update.html:63
#: users/templates/users/user_pubkey_update.html:69
msgid "Reset"
msgid "Reset"
msgstr "重置"
msgstr "重置"
#: applications/templates/applications/terminal_update.html:46
#: applications/templates/applications/terminal_update.html:46
#: assets/templates/assets/_system_user.html:77
#: assets/templates/assets/_system_user.html:77
#: assets/templates/assets/admin_user_create_update.html:47
#: assets/templates/assets/admin_user_create_update.html:47
#: assets/templates/assets/admin_user_list.html:33
#: assets/templates/assets/asset_create.html:41
#: assets/templates/assets/asset_create.html:40
#: assets/templates/assets/asset_group_list.html:32
#: assets/templates/assets/asset_group_list.html:32
#: assets/templates/assets/asset_list.html:78
#: assets/templates/assets/asset_list.html:78
#: assets/templates/assets/asset_modal_update.html:79
#: assets/templates/assets/asset_modal_update.html:79
#: assets/templates/assets/asset_tags_list.html:79
#: assets/templates/assets/asset_update.html:56
#: assets/templates/assets/asset_update.html:57
#: assets/templates/assets/idc_assets.html:72
#: assets/templates/assets/idc_assets.html:72
#: assets/templates/assets/idc_create_update.html:52
#: assets/templates/assets/idc_create_update.html:52
#: assets/templates/assets/idc_list.html:36
#: assets/templates/assets/idc_list.html:36
...
@@ -259,32 +268,53 @@ msgstr "重置"
...
@@ -259,32 +268,53 @@ msgstr "重置"
#: audits/templates/audits/proxy_log_online_list.html:124
#: audits/templates/audits/proxy_log_online_list.html:124
#: perms/templates/perms/asset_permission_create_update.html:68
#: perms/templates/perms/asset_permission_create_update.html:68
#: users/templates/users/_user.html:50
#: users/templates/users/_user.html:50
#: users/templates/users/first_login.html:60
#: users/templates/users/forgot_password.html:44
#: users/templates/users/forgot_password.html:44
#: users/templates/users/user_asset_permission.html:100
#: users/templates/users/user_asset_permission.html:100
#: users/templates/users/user_group_asset_permission.html:100
#: users/templates/users/user_group_asset_permission.html:100
#: users/templates/users/user_group_list.html:26
#: users/templates/users/user_group_list.html:26
#: users/templates/users/user_list.html:46
#: users/templates/users/user_list.html:46
#: users/templates/users/user_password_update.html:59
#: users/templates/users/user_profile_update.html:64
#: users/templates/users/user_pubkey_update.html:70
msgid "Submit"
msgid "Submit"
msgstr "提交"
msgstr "提交"
#: applications/views.py:2
3
audits/models.py:47
#: applications/views.py:2
4
audits/models.py:47
#: audits/templates/audits/proxy_log_offline_list.html:67
#: audits/templates/audits/proxy_log_offline_list.html:67
#: audits/templates/audits/proxy_log_online_list.html:67 templates/_nav.html:42
#: audits/templates/audits/proxy_log_online_list.html:67 templates/_nav.html:42
#: templates/_nav_user.html:14
msgid "Terminal"
msgid "Terminal"
msgstr "终端"
msgstr "终端"
#: applications/views.py:2
4
#: applications/views.py:2
5
msgid "Terminal list"
msgid "Terminal list"
msgstr "终端列表"
msgstr "终端列表"
#: applications/views.py:3
8 applications/views.py:50
templates/_nav.html:39
#: applications/views.py:3
9 applications/views.py:51
templates/_nav.html:39
msgid "Applications"
msgid "Applications"
msgstr "应用程序"
msgstr "应用程序"
#: applications/views.py:38
#: applications/views.py:39
#, fuzzy
msgid "Update terminal"
msgid "Update terminal"
msgstr "更新terminal"
msgstr "更新终端"
#: applications/views.py:99
msgid "Redirect to web terminal"
msgstr "重定向到web terminal"
#: applications/views.py:100
msgid "Redirect to web terminal: {}"
msgstr ""
#: applications/views.py:107
msgid "Connect ssh terminal"
msgstr "连接ssh终端"
#: applications/views.py:108
msgid ""
"You should use your ssh client tools connect terminal: {} <br /> <br />{}"
msgstr "你可以使用ssh客户端工具连接终端"
#: assets/forms.py:15
#: assets/forms.py:15
msgid "Select admin user"
msgid "Select admin user"
...
@@ -292,8 +322,8 @@ msgstr "选择管理用户"
...
@@ -292,8 +322,8 @@ msgstr "选择管理用户"
#: assets/forms.py:26 assets/forms.py:47
#: assets/forms.py:26 assets/forms.py:47
#: assets/templates/assets/admin_user_detail.html:198 perms/forms.py:30
#: assets/templates/assets/admin_user_detail.html:198 perms/forms.py:30
#: perms/templates/perms/asset_permission_asset.html:137 users/forms.py:1
02
#: perms/templates/perms/asset_permission_asset.html:137 users/forms.py:1
53
#: users/forms.py:1
2
9
#: users/forms.py:1
7
9
msgid "Select asset groups"
msgid "Select asset groups"
msgstr "添加到资产组"
msgstr "添加到资产组"
...
@@ -310,7 +340,8 @@ msgstr "系统用户会被授权给用户用来登录资产, ansible会自动创
...
@@ -310,7 +340,8 @@ msgstr "系统用户会被授权给用户用来登录资产, ansible会自动创
#: assets/forms.py:33 assets/forms.py:54
#: assets/forms.py:33 assets/forms.py:54
msgid ""
msgid ""
"Admin user should be exist on asset already, And have sudo ALL permission"
"Admin user should be exist on asset already, And have sudo ALL permission"
msgstr "管理用户应该已经在资产上存在, 可以是root或者其他拥有 sudo ALL 权限的用户"
msgstr ""
"管理用户应该已经在资产上存在, 可以是root或者其他拥有 sudo ALL 权限的用户"
#: assets/forms.py:62 assets/forms.py:98 assets/forms.py:136
#: assets/forms.py:62 assets/forms.py:98 assets/forms.py:136
#: assets/templates/assets/asset_group_list.html:16
#: assets/templates/assets/asset_group_list.html:16
...
@@ -332,25 +363,21 @@ msgstr "资产"
...
@@ -332,25 +363,21 @@ msgstr "资产"
#: assets/forms.py:65 assets/forms.py:101 assets/forms.py:139
#: assets/forms.py:65 assets/forms.py:101 assets/forms.py:139
#: assets/templates/assets/asset_group_detail.html:86 perms/forms.py:27
#: assets/templates/assets/asset_group_detail.html:86 perms/forms.py:27
#: users/forms.py:
99 users/forms.py:12
6
#: users/forms.py:
150 users/forms.py:17
6
msgid "Select assets"
msgid "Select assets"
msgstr "选择资产"
msgstr "选择资产"
#: assets/forms.py:87
#: assets/forms.py:87
#, fuzzy
#| msgid "System user"
msgid "Select asset system user"
msgid "Select asset system user"
msgstr "系统"
msgstr "系统"
#: assets/forms.py:145
#: assets/forms.py:145
msgid "If also set private key, use that first"
msgid "If also set private key, use that first"
msgstr "如果设置私钥,则优先使用
私
钥"
msgstr "如果设置私钥,则优先使用
密
钥"
#: assets/forms.py:184
#: assets/forms.py:184
#, fuzzy
#| msgid "SSH private key"
msgid "Invalid private key"
msgid "Invalid private key"
msgstr "ssh密钥"
msgstr "ssh密钥
不合法
"
#: assets/forms.py:194
#: assets/forms.py:194
msgid "Password and private key file must be input one"
msgid "Password and private key file must be input one"
...
@@ -367,6 +394,7 @@ msgstr "密码和私钥, 必须输入一个"
...
@@ -367,6 +394,7 @@ msgstr "密码和私钥, 必须输入一个"
#: users/templates/users/login.html:53
#: users/templates/users/login.html:53
#: users/templates/users/user_detail.html:69
#: users/templates/users/user_detail.html:69
#: users/templates/users/user_list.html:26
#: users/templates/users/user_list.html:26
#: users/templates/users/user_profile.html:47
msgid "Username"
msgid "Username"
msgstr "用户名"
msgstr "用户名"
...
@@ -383,16 +411,12 @@ msgid "Password required"
...
@@ -383,16 +411,12 @@ msgid "Password required"
msgstr "密码不能为空"
msgstr "密码不能为空"
#: assets/models/asset.py:23
#: assets/models/asset.py:23
#, fuzzy
#| msgid "Admin user"
msgid "In use"
msgid "In use"
msgstr "
管理用户
"
msgstr "
使用中
"
#: assets/models/asset.py:24
#: assets/models/asset.py:24
#, fuzzy
#| msgid "Auto push"
msgid "Out of use"
msgid "Out of use"
msgstr "
自动推送
"
msgstr "
未使用
"
#: assets/models/asset.py:27
#: assets/models/asset.py:27
#: assets/templates/assets/_asset_bulk_update_modal.html:24
#: assets/templates/assets/_asset_bulk_update_modal.html:24
...
@@ -425,12 +449,12 @@ msgid "Storage"
...
@@ -425,12 +449,12 @@ msgid "Storage"
msgstr "存储"
msgstr "存储"
#: assets/models/asset.py:42 assets/templates/assets/admin_user_detail.html:97
#: assets/models/asset.py:42 assets/templates/assets/admin_user_detail.html:97
#: assets/templates/assets/asset_detail.html:
49
#: assets/templates/assets/asset_detail.html:
56
#: assets/templates/assets/asset_group_detail.html:45
#: assets/templates/assets/asset_group_detail.html:45
#: assets/templates/assets/asset_list.html:54
#: assets/templates/assets/asset_list.html:54
#: assets/templates/assets/asset_tag_detail.html:81
#: assets/templates/assets/idc_assets.html:54
#: assets/templates/assets/idc_assets.html:54
#: assets/templates/assets/system_user_asset.html:47
#: assets/templates/assets/system_user_asset.html:47
#: assets/templates/assets/user_asset_list.html:33
#: perms/templates/perms/asset_permission_asset.html:64
#: perms/templates/perms/asset_permission_asset.html:64
#: users/templates/users/user_granted_asset.html:52
#: users/templates/users/user_granted_asset.html:52
#: users/templates/users/user_group_granted_asset.html:52
#: users/templates/users/user_group_granted_asset.html:52
...
@@ -438,23 +462,23 @@ msgid "Hostname"
...
@@ -438,23 +462,23 @@ msgid "Hostname"
msgstr "主机名"
msgstr "主机名"
#: assets/models/asset.py:43 assets/templates/assets/admin_user_detail.html:99
#: assets/models/asset.py:43 assets/templates/assets/admin_user_detail.html:99
#: assets/templates/assets/asset_detail.html:
73
#: assets/templates/assets/asset_detail.html:
68
#: assets/templates/assets/asset_group_detail.html:47
#: assets/templates/assets/asset_group_detail.html:47
#: assets/templates/assets/asset_list.html:56
#: assets/templates/assets/asset_list.html:56
#: assets/templates/assets/asset_tag_detail.html:83
#: assets/templates/assets/idc_assets.html:56
#: assets/templates/assets/idc_assets.html:56
#: assets/templates/assets/system_user_asset.html:49
#: assets/templates/assets/system_user_asset.html:49
#: assets/templates/assets/user_asset_list.html:35
#: perms/templates/perms/asset_permission_asset.html:66
#: perms/templates/perms/asset_permission_asset.html:66
#: users/templates/users/user_granted_asset.html:54
#: users/templates/users/user_granted_asset.html:54
#: users/templates/users/user_group_granted_asset.html:54
#: users/templates/users/user_group_granted_asset.html:54
msgid "Port"
msgid "Port"
msgstr "端口"
msgstr "端口"
#: assets/models/asset.py:44 assets/templates/assets/asset_detail.html:
191
#: assets/models/asset.py:44 assets/templates/assets/asset_detail.html:
210
msgid "Asset groups"
msgid "Asset groups"
msgstr "
用户
组"
msgstr "
资产
组"
#: assets/models/asset.py:46 assets/templates/assets/asset_detail.html:
57
#: assets/models/asset.py:46 assets/templates/assets/asset_detail.html:
72
#: templates/_nav.html:24
#: templates/_nav.html:24
msgid "Admin user"
msgid "Admin user"
msgstr "管理用户"
msgstr "管理用户"
...
@@ -463,27 +487,28 @@ msgstr "管理用户"
...
@@ -463,27 +487,28 @@ msgstr "管理用户"
msgid "System User"
msgid "System User"
msgstr "系统用户"
msgstr "系统用户"
#: assets/models/asset.py:49 templates/_nav.html:23
#: assets/models/asset.py:49 assets/templates/assets/asset_detail.html:84
#: templates/_nav.html:23
msgid "IDC"
msgid "IDC"
msgstr "机房"
msgstr "机房"
#: assets/models/asset.py:50 assets/templates/assets/asset_detail.html:1
01
#: assets/models/asset.py:50 assets/templates/assets/asset_detail.html:1
28
msgid "Is active"
msgid "Is active"
msgstr "
是否
激活"
msgstr "激活"
#: assets/models/asset.py:52 assets/templates/assets/asset_detail.html:1
05
#: assets/models/asset.py:52 assets/templates/assets/asset_detail.html:1
32
msgid "Asset type"
msgid "Asset type"
msgstr "系统类型"
msgstr "系统类型"
#: assets/models/asset.py:54 assets/templates/assets/asset_detail.html:1
09
#: assets/models/asset.py:54 assets/templates/assets/asset_detail.html:1
36
msgid "Asset environment"
msgid "Asset environment"
msgstr "资产环境"
msgstr "资产环境"
#: assets/models/asset.py:56 assets/templates/assets/asset_detail.html:
97
#: assets/models/asset.py:56 assets/templates/assets/asset_detail.html:
124
msgid "Asset status"
msgid "Asset status"
msgstr "资产状态"
msgstr "资产状态"
#: assets/models/asset.py:59
#: assets/models/asset.py:59
assets/templates/assets/asset_detail.html:64
msgid "Public IP"
msgid "Public IP"
msgstr "公网IP"
msgstr "公网IP"
...
@@ -499,19 +524,19 @@ msgstr "机柜编号"
...
@@ -499,19 +524,19 @@ msgstr "机柜编号"
msgid "Cabinet position"
msgid "Cabinet position"
msgstr "机柜层号"
msgstr "机柜层号"
#: assets/models/asset.py:63 assets/templates/assets/asset_detail.html:1
17
#: assets/models/asset.py:63 assets/templates/assets/asset_detail.html:1
44
msgid "Asset number"
msgid "Asset number"
msgstr "资产编号"
msgstr "资产编号"
#: assets/models/asset.py:66
#: assets/models/asset.py:66
assets/templates/assets/asset_detail.html:96
msgid "Vendor"
msgid "Vendor"
msgstr "制造商"
msgstr "制造商"
#: assets/models/asset.py:67
#: assets/models/asset.py:67
assets/templates/assets/asset_detail.html:100
msgid "Model"
msgid "Model"
msgstr "型号"
msgstr "型号"
#: assets/models/asset.py:68 assets/templates/assets/asset_detail.html:1
13
#: assets/models/asset.py:68 assets/templates/assets/asset_detail.html:1
40
msgid "Serial number"
msgid "Serial number"
msgstr "序列号"
msgstr "序列号"
...
@@ -520,8 +545,6 @@ msgid "CPU model"
...
@@ -520,8 +545,6 @@ msgid "CPU model"
msgstr "CPU型号"
msgstr "CPU型号"
#: assets/models/asset.py:71
#: assets/models/asset.py:71
#, fuzzy
#| msgid "User group"
msgid "CPU count"
msgid "CPU count"
msgstr "CPU数量"
msgstr "CPU数量"
...
@@ -529,7 +552,7 @@ msgstr "CPU数量"
...
@@ -529,7 +552,7 @@ msgstr "CPU数量"
msgid "CPU cores"
msgid "CPU cores"
msgstr "CPU核数"
msgstr "CPU核数"
#: assets/models/asset.py:73 assets/templates/assets/asset_detail.html:
85
#: assets/models/asset.py:73 assets/templates/assets/asset_detail.html:
108
msgid "Memory"
msgid "Memory"
msgstr "内存"
msgstr "内存"
...
@@ -541,28 +564,26 @@ msgstr "硬盘大小"
...
@@ -541,28 +564,26 @@ msgstr "硬盘大小"
msgid "Disk info"
msgid "Disk info"
msgstr "硬盘信息"
msgstr "硬盘信息"
#: assets/models/asset.py:78 assets/templates/assets/asset_detail.html:
93
#: assets/models/asset.py:78 assets/templates/assets/asset_detail.html:
120
msgid "OS"
msgid "OS"
msgstr "操作系统"
msgstr "操作系统"
#: assets/models/asset.py:79
#: assets/models/asset.py:79
msgid "OS
V
ersion"
msgid "OS
v
ersion"
msgstr "系统版本"
msgstr "系统版本"
#: assets/models/asset.py:80
#: assets/models/asset.py:80
msgid "OS
A
rch"
msgid "OS
a
rch"
msgstr "系统架构"
msgstr "系统架构"
#: assets/models/asset.py:81
#: assets/models/asset.py:81
#, fuzzy
msgid "Hostname raw"
msgid "Hostname raw"
msgstr "主机名原始"
msgstr "主机名原始"
#: assets/models/asset.py:83 assets/models/group.py:20 assets/models/idc.py:34
#: assets/models/asset.py:83 assets/models/group.py:20 assets/models/idc.py:34
#: assets/models/user.py:49 assets/models/user.py:155
#: assets/models/user.py:49 assets/models/user.py:155
#: assets/templates/assets/admin_user_detail.html:64
#: assets/templates/assets/admin_user_detail.html:64
#: assets/templates/assets/asset_detail.html:121
#: assets/templates/assets/asset_detail.html:148
#: assets/templates/assets/asset_tag_detail.html:47
#: assets/templates/assets/idc_detail.html:93
#: assets/templates/assets/idc_detail.html:93
#: assets/templates/assets/system_user_detail.html:102 perms/models.py:37
#: assets/templates/assets/system_user_detail.html:102 perms/models.py:37
#: perms/templates/perms/asset_permission_detail.html:94
#: perms/templates/perms/asset_permission_detail.html:94
...
@@ -571,16 +592,14 @@ msgid "Created by"
...
@@ -571,16 +592,14 @@ msgid "Created by"
msgstr "创建者"
msgstr "创建者"
#: assets/models/asset.py:84 assets/models/group.py:21 assets/models/idc.py:30
#: assets/models/asset.py:84 assets/models/group.py:21 assets/models/idc.py:30
msgid "Date
add
ed"
msgid "Date
creat
ed"
msgstr "加入日期"
msgstr "加入日期"
#: assets/models/group.py:32 assets/models/idc.py:42
#: assets/models/group.py:32 assets/models/idc.py:42
#, fuzzy
msgid "Default"
msgid "Default"
msgstr "默认"
msgstr "默认"
#: assets/models/group.py:32
#: assets/models/group.py:32
#, fuzzy
msgid "Default asset group"
msgid "Default asset group"
msgstr "默认资产组"
msgstr "默认资产组"
...
@@ -615,26 +634,27 @@ msgstr "外网"
...
@@ -615,26 +634,27 @@ msgstr "外网"
#: assets/templates/assets/idc_list.html:22
#: assets/templates/assets/idc_list.html:22
msgid "Operator"
msgid "Operator"
msgstr "运营商"
msgstr "运营商"
#: assets/models/idc.py:42 users/models/user.py:242
#: assets/models/idc.py:42 users/models/user.py:253
msgid "System"
msgid "System"
msgstr "系统"
msgstr "系统"
#: assets/models/idc.py:42
#: assets/models/idc.py:42
#, fuzzy
#| msgid "As default"
msgid "Default IDC"
msgid "Default IDC"
msgstr "默认
使用
"
msgstr "默认
IDC
"
#: assets/models/user.py:24
#: assets/models/user.py:24
#, python-format
msgid "%(value)s is not an even number"
msgid "%(value)s is not an even number"
msgstr ""
msgstr "
%(value)s is not an even number
"
#: assets/models/user.py:37 assets/models/user.py:139 users/forms.py:16
#: assets/models/user.py:37 assets/models/user.py:139 users/forms.py:16
#: users/templates/users/login.html:56
#: users/templates/users/login.html:56
#: users/templates/users/reset_password.html:52
#: users/templates/users/reset_password.html:52
#: users/templates/users/user_create.html:9
#: users/templates/users/user_create.html:9
#: users/templates/users/user_create.html:11
#: users/templates/users/user_create.html:11
#: users/templates/users/user_password_update.html:40
#: users/templates/users/user_profile_update.html:40
#: users/templates/users/user_pubkey_update.html:40
#: users/templates/users/user_update.html:5
#: users/templates/users/user_update.html:5
#: users/templates/users/user_update.html:7
#: users/templates/users/user_update.html:7
msgid "Password"
msgid "Password"
...
@@ -670,10 +690,8 @@ msgid "Shell"
...
@@ -670,10 +690,8 @@ msgid "Shell"
msgstr "Shell"
msgstr "Shell"
#: assets/templates/assets/_asset_bulk_update_modal.html:5
#: assets/templates/assets/_asset_bulk_update_modal.html:5
#, fuzzy
#| msgid "Update user"
msgid "Update Asset"
msgid "Update Asset"
msgstr "
编辑用户
"
msgstr "
更新资产
"
#: assets/templates/assets/_asset_bulk_update_modal.html:8
#: assets/templates/assets/_asset_bulk_update_modal.html:8
#: assets/templates/assets/_asset_group_bulk_update_modal.html:8
#: assets/templates/assets/_asset_group_bulk_update_modal.html:8
...
@@ -682,43 +700,31 @@ msgid "Hint: only change the field you want to update."
...
@@ -682,43 +700,31 @@ msgid "Hint: only change the field you want to update."
msgstr ""
msgstr ""
#: assets/templates/assets/_asset_bulk_update_modal.html:20
#: assets/templates/assets/_asset_bulk_update_modal.html:20
#, fuzzy
msgid "Asset type"
#| msgid "System User"
msgstr "资产类型"
msgid "System Type"
msgstr "系统用户"
#: assets/templates/assets/_asset_bulk_update_modal.html:35
#: assets/templates/assets/_asset_bulk_update_modal.html:35
#, fuzzy
msgid "Asset groups"
#| msgid "Asset groups"
msgstr "资产组"
msgid "Asset Groups"
msgstr "用户组"
#: assets/templates/assets/_asset_bulk_update_modal.html:37
#: assets/templates/assets/_asset_bulk_update_modal.html:37
#: users/templates/users/_user_bulk_update_modal.html:21
#: users/templates/users/_user_bulk_update_modal.html:21
#, fuzzy
msgid "Select groups"
#| msgid "Select asset groups"
msgstr "选择组"
msgid "Select Group"
msgstr "添加到资产组"
#: assets/templates/assets/_asset_bulk_update_modal.html:46
#: assets/templates/assets/_asset_bulk_update_modal.html:46
#: assets/templates/assets/_asset_group_bulk_update_modal.html:22
#: assets/templates/assets/_asset_group_bulk_update_modal.html:22
#, fuzzy
msgid "System users"
#| msgid "System User"
msgid "System Users"
msgstr "系统用户"
msgstr "系统用户"
#: assets/templates/assets/_asset_bulk_update_modal.html:48
#: assets/templates/assets/_asset_bulk_update_modal.html:48
#: assets/templates/assets/_asset_group_bulk_update_modal.html:24
#: assets/templates/assets/_asset_group_bulk_update_modal.html:24
#, fuzzy
#| msgid "System user"
msgid "Select System Users"
msgid "Select System Users"
msgstr "选择系统用户"
msgstr "选择系统用户"
#: assets/templates/assets/_asset_bulk_update_modal.html:59
#: assets/templates/assets/_asset_bulk_update_modal.html:59
#: assets/templates/assets/_asset_group_bulk_update_modal.html:35
#: assets/templates/assets/_asset_group_bulk_update_modal.html:35
#: users/templates/users/_user_bulk_update_modal.html:31
#: users/templates/users/_user_bulk_update_modal.html:31
#, fuzzy
#| msgid "Enable OTP"
msgid "Enable-OTP"
msgid "Enable-OTP"
msgstr "二次验证"
msgstr "二次验证"
...
@@ -727,20 +733,19 @@ msgid "Update Asset Group"
...
@@ -727,20 +733,19 @@ msgid "Update Asset Group"
msgstr "编辑资产组"
msgstr "编辑资产组"
#: assets/templates/assets/_asset_group_bulk_update_modal.html:12
#: assets/templates/assets/_asset_group_bulk_update_modal.html:12
#: assets/views.py:191 assets/views.py:214 assets/views.py:234
#: assets/views/admin_user.py:27 assets/views/group.py:30
#: assets/views.py:259 assets/views.py:280 assets/views.py:345
#: assets/views/group.py:53 assets/views/group.py:73 assets/views/group.py:98
#: assets/views.py:368 assets/views.py:465 assets/views.py:484
#: assets/views/idc.py:22 assets/views/idc.py:87 assets/views/system_user.py:28
#: assets/views.py:511 assets/views.py:529 templates/_nav.html:18
#: assets/views/system_user.py:47 assets/views/system_user.py:75
#: assets/views/system_user.py:94 templates/_nav.html:18
msgid "Assets"
msgid "Assets"
msgstr "资产管理"
msgstr "资产管理"
#: assets/templates/assets/_asset_group_bulk_update_modal.html:14
#: assets/templates/assets/_asset_group_bulk_update_modal.html:14
#, fuzzy
msgid "Select Asset"
msgid "Select Asset"
msgstr "选择资产"
msgstr "选择资产"
#: assets/templates/assets/_asset_import_modal.html:4
#: assets/templates/assets/_asset_import_modal.html:4
#, fuzzy
msgid "Import asset"
msgid "Import asset"
msgstr "导入资产"
msgstr "导入资产"
...
@@ -760,14 +765,12 @@ msgid "Download"
...
@@ -760,14 +765,12 @@ msgid "Download"
msgstr "下载"
msgstr "下载"
#: assets/templates/assets/_asset_import_modal.html:14
#: assets/templates/assets/_asset_import_modal.html:14
#, fuzzy
#| msgid "Asset group list"
msgid "Asset excel file"
msgid "Asset excel file"
msgstr "资产
组列表
"
msgstr "资产
excel
"
#: assets/templates/assets/_system_user.html:16
#: assets/templates/assets/_system_user.html:16
#: assets/templates/assets/system_user_list.html:9
assets/views.py:485
#: assets/templates/assets/system_user_list.html:9
#
, fuzzy
#
: assets/views/system_user.py:48
msgid "Create system user"
msgid "Create system user"
msgstr "创建系统用户"
msgstr "创建系统用户"
...
@@ -782,7 +785,6 @@ msgid "Auth"
...
@@ -782,7 +785,6 @@ msgid "Auth"
msgstr "认证"
msgstr "认证"
#: assets/templates/assets/_system_user.html:54
#: assets/templates/assets/_system_user.html:54
#, fuzzy
msgid "Auto generate key"
msgid "Auto generate key"
msgstr "自动生成秘钥"
msgstr "自动生成秘钥"
...
@@ -793,7 +795,6 @@ msgstr "创建管理用户"
...
@@ -793,7 +795,6 @@ msgstr "创建管理用户"
#: assets/templates/assets/admin_user_detail.html:17
#: assets/templates/assets/admin_user_detail.html:17
#: assets/templates/assets/asset_group_detail.html:16
#: assets/templates/assets/asset_group_detail.html:16
#: assets/templates/assets/asset_tag_detail.html:16
#: assets/templates/assets/idc_assets.html:20
#: assets/templates/assets/idc_assets.html:20
#: assets/templates/assets/idc_detail.html:17
#: assets/templates/assets/idc_detail.html:17
#: assets/templates/assets/system_user_asset.html:17
#: assets/templates/assets/system_user_asset.html:17
...
@@ -807,7 +808,6 @@ msgstr "详情"
...
@@ -807,7 +808,6 @@ msgstr "详情"
#: assets/templates/assets/admin_user_detail.html:78
#: assets/templates/assets/admin_user_detail.html:78
#: assets/templates/assets/asset_group_detail.html:26
#: assets/templates/assets/asset_group_detail.html:26
#: assets/templates/assets/asset_tag_detail.html:62
#: assets/templates/assets/system_user_asset_group.html:32
#: assets/templates/assets/system_user_asset_group.html:32
#: perms/templates/perms/asset_permission_asset.html:45
#: perms/templates/perms/asset_permission_asset.html:45
msgid "Asset list of "
msgid "Asset list of "
...
@@ -850,7 +850,6 @@ msgid "Replace asset admin user with this"
...
@@ -850,7 +850,6 @@ msgid "Replace asset admin user with this"
msgstr "替换资产管理用户"
msgstr "替换资产管理用户"
#: assets/templates/assets/admin_user_detail.html:170
#: assets/templates/assets/admin_user_detail.html:170
#: assets/templates/assets/asset_tag_detail.html:106
#: assets/templates/assets/idc_assets.html:92
#: assets/templates/assets/idc_assets.html:92
#: assets/templates/assets/system_user_asset.html:87
#: assets/templates/assets/system_user_asset.html:87
msgid "Select asset"
msgid "Select asset"
...
@@ -866,165 +865,110 @@ msgid "Replace asset admin user with this admin user"
...
@@ -866,165 +865,110 @@ msgid "Replace asset admin user with this admin user"
msgstr "替换资产管理用户"
msgstr "替换资产管理用户"
#: assets/templates/assets/admin_user_detail.html:306
#: assets/templates/assets/admin_user_detail.html:306
#: assets/templates/assets/asset_group_detail.html:
301
#: assets/templates/assets/asset_group_detail.html:
265
msgid "Remove"
msgid "Remove"
msgstr "移除"
msgstr "移除"
#: assets/templates/assets/admin_user_list.html:17
#: assets/templates/assets/admin_user_list.html:17
#: assets/templates/assets/asset_tags_list.html:64
#: assets/templates/assets/idc_list.html:19
#: assets/templates/assets/idc_list.html:19
#: assets/templates/assets/system_user_asset_group.html:52
#: assets/templates/assets/system_user_asset_group.html:52
#: users/templates/users/_select_user_modal.html:17
#: users/templates/users/_select_user_modal.html:17
msgid "Asset num"
msgid "Asset num"
msgstr "资产数量"
msgstr "资产数量"
#: assets/templates/assets/admin_user_list.html:18
#: assets/templates/assets/asset_create.html:23
msgid "Lost connection"
msgstr "丢失连接"
#: assets/templates/assets/admin_user_list.html:29
#: assets/templates/assets/asset_group_list.html:27
#: assets/templates/assets/asset_list.html:71
#: assets/templates/assets/asset_tags_list.html:74
#: assets/templates/assets/idc_assets.html:68
#: assets/templates/assets/idc_list.html:32
#: assets/templates/assets/system_user_list.html:31
#: users/templates/users/user_group_list.html:22
#: users/templates/users/user_list.html:39
msgid "Delete selected"
msgstr "批量删除"
#: assets/templates/assets/admin_user_list.html:96
#: assets/templates/assets/asset_group_list.html:95
#: assets/templates/assets/asset_list.html:223
#: assets/templates/assets/idc_assets.html:259
#: assets/templates/assets/idc_list.html:93
#: assets/templates/assets/system_user_list.html:97
#: users/templates/users/user_detail.html:332
#: users/templates/users/user_detail.html:357
#: users/templates/users/user_group_list.html:86
#: users/templates/users/user_list.html:166
msgid "Are you sure?"
msgstr "确认吗?"
#: assets/templates/assets/admin_user_list.html:97
msgid "This will delete the selected Admin Users !!!"
msgstr "这将删除选择的管理用户"
#: assets/templates/assets/admin_user_list.html:101
#: assets/templates/assets/asset_group_list.html:100
#: assets/templates/assets/asset_list.html:228
#: assets/templates/assets/idc_assets.html:264
#: assets/templates/assets/idc_list.html:98
#: assets/templates/assets/system_user_list.html:102 templates/_modal.html:16
#: users/templates/users/user_detail.html:337
#: users/templates/users/user_detail.html:362
#: users/templates/users/user_detail.html:385
#: users/templates/users/user_group_list.html:91
#: users/templates/users/user_list.html:171
#: users/templates/users/user_profile.html:138
#, fuzzy
#| msgid "Confirm delete"
msgid "Confirm"
msgstr "确认删除"
# msgid "Deleted!"
# msgstr "删除"
#: assets/templates/assets/admin_user_list.html:105
msgid "Admin Users Deleted."
msgstr "已被删除"
#: assets/templates/assets/admin_user_list.html:106
#: assets/templates/assets/admin_user_list.html:111
msgid "Admin Users Delete"
msgstr "删除"
#: assets/templates/assets/admin_user_list.html:110
#, fuzzy
msgid "Admin Users Deleting failed."
msgstr "用户删除失败"
#: assets/templates/assets/asset_create.html:22
#: assets/templates/assets/asset_update.html:27
#: assets/templates/assets/asset_update.html:27
msgid "Group"
msgid "Group"
msgstr "组"
msgstr "组"
#: assets/templates/assets/asset_create.html:2
7
#: assets/templates/assets/asset_create.html:2
8
#: assets/templates/assets/asset_update.html:32
#: assets/templates/assets/asset_update.html:32
msgid "Asset user"
msgid "Asset user"
msgstr "资产用户"
msgstr "资产用户"
#: assets/templates/assets/asset_detail.html:19 assets/views.py:346
#: assets/templates/assets/asset_detail.html:19 assets/views/idc.py:88
#, fuzzy
msgid "Asset detail"
msgid "Asset detail"
msgstr "资产详情"
msgstr "资产详情"
#: assets/templates/assets/asset_detail.html:65
#: assets/templates/assets/asset_detail.html:80
msgid "Other IP"
msgstr "其它IP"
#: assets/templates/assets/asset_detail.html:69
msgid "Remote card IP"
msgid "Remote card IP"
msgstr "远控卡IP"
msgstr "远控卡IP"
#: assets/templates/assets/asset_detail.html:77
#: assets/templates/assets/asset_detail.html:88
msgid "Mac address"
msgid "Cabinet no"
msgstr "Mac地址"
msgstr "机柜编号"
#: assets/templates/assets/asset_detail.html:92
msgid "Cabinet pos"
msgstr "机柜层号"
#: assets/templates/assets/asset_detail.html:
81
#: assets/templates/assets/asset_detail.html:
104
msgid "CPU"
msgid "CPU"
msgstr "CPU"
msgstr "CPU"
#: assets/templates/assets/asset_detail.html:
89
#: assets/templates/assets/asset_detail.html:
112
msgid "Disk"
msgid "Disk"
msgstr "硬盘"
msgstr "硬盘"
#: assets/templates/assets/asset_detail.html:125
#: assets/templates/assets/asset_detail.html:116
msgid "Platform"
msgstr ""
#: assets/templates/assets/asset_detail.html:152
#: users/templates/users/user_detail.html:101
#: users/templates/users/user_detail.html:101
#: users/templates/users/user_profile.html:88
msgid "Date joined"
msgid "Date joined"
msgstr "创建日期"
msgstr "创建日期"
#: assets/templates/assets/asset_detail.html:1
40
#: assets/templates/assets/asset_detail.html:1
68
#: users/templates/users/user_detail.html:120
#: users/templates/users/user_detail.html:120
#: users/templates/users/user_profile.html:130
msgid "Quick modify"
msgid "Quick modify"
msgstr "快速修改"
msgstr "快速修改"
#: assets/templates/assets/asset_detail.html:1
60
#: assets/templates/assets/asset_detail.html:1
88
msgid "R
r
efresh hardware"
msgid "Refresh hardware"
msgstr "更新硬件信息"
msgstr "更新硬件信息"
#: assets/templates/assets/asset_detail.html:1
63
#: assets/templates/assets/asset_detail.html:1
91
msgid "Refresh"
msgid "Refresh"
msgstr "刷新"
msgstr "刷新"
#: assets/templates/assets/asset_detail.html:1
68
#: assets/templates/assets/asset_detail.html:1
96
msgid "Test admin user"
msgid "Test admin user"
msgstr "测试管理用户"
msgstr "测试管理用户"
#: assets/templates/assets/asset_detail.html:171
#: assets/templates/assets/asset_detail.html:199
#: assets/templates/assets/asset_detail.html:179
msgid "Test"
msgid "Test"
msgstr "测试"
msgstr "测试"
#: assets/templates/assets/asset_detail.html:176
#: assets/templates/assets/asset_detail.html:218
msgid "Test system ping"
msgstr "测试系统用户"
#: assets/templates/assets/asset_detail.html:199
msgid "Join asset groups"
msgid "Join asset groups"
msgstr "添加到资产组"
msgstr "添加到资产组"
#: assets/templates/assets/asset_detail.html:2
08
#: assets/templates/assets/asset_detail.html:2
27
#: perms/templates/perms/asset_permission_asset.html:146
#: perms/templates/perms/asset_permission_asset.html:146
#: perms/templates/perms/asset_permission_detail.html:170
#: perms/templates/perms/asset_permission_detail.html:170
#: users/templates/users/user_detail.html:194
#: users/templates/users/user_detail.html:194
msgid "Join"
msgid "Join"
msgstr "加入"
msgstr "加入"
#: assets/templates/assets/asset_detail.html:309
#: assets/templates/assets/asset_detail.html:246
msgid "System users"
msgstr "系统用户"
#: assets/templates/assets/asset_detail.html:254
msgid "Select system user"
msgstr "选择系统用户"
#: assets/templates/assets/asset_detail.html:263
msgid "Associate"
msgstr "关联"
#: assets/templates/assets/asset_detail.html:374
#: users/templates/users/user_detail.html:271
#: users/templates/users/user_detail.html:271
#: users/templates/users/user_detail.html:284
#: users/templates/users/user_detail.html:284
msgid "Update
S
uccessfully!"
msgid "Update
s
uccessfully!"
msgstr "更新成功"
msgstr "更新成功"
#: assets/templates/assets/asset_group_detail.html:78
#: assets/templates/assets/asset_group_detail.html:78
...
@@ -1032,7 +976,6 @@ msgid "Add asset to this group"
...
@@ -1032,7 +976,6 @@ msgid "Add asset to this group"
msgstr "添加资产到该组"
msgstr "添加资产到该组"
#: assets/templates/assets/asset_group_detail.html:95
#: assets/templates/assets/asset_group_detail.html:95
#: assets/templates/assets/asset_tag_detail.html:115
#: assets/templates/assets/system_user_asset_group.html:94
#: assets/templates/assets/system_user_asset_group.html:94
#: perms/templates/perms/asset_permission_asset.html:118
#: perms/templates/perms/asset_permission_asset.html:118
#: perms/templates/perms/asset_permission_user.html:118
#: perms/templates/perms/asset_permission_user.html:118
...
@@ -1041,39 +984,63 @@ msgstr "添加资产到该组"
...
@@ -1041,39 +984,63 @@ msgstr "添加资产到该组"
msgid "Add"
msgid "Add"
msgstr "添加"
msgstr "添加"
#: assets/templates/assets/asset_group_detail.html:106
#: assets/templates/assets/asset_group_list.html:7 assets/views/group.py:31
#, fuzzy
#: assets/views/group.py:99
msgid "Associate system user"
msgstr "关联系统用户"
#: assets/templates/assets/asset_group_detail.html:114
msgid "Select system user"
msgstr "选择系统用户"
#: assets/templates/assets/asset_group_detail.html:123
msgid "Associate"
msgstr "关联"
#: assets/templates/assets/asset_group_list.html:7 assets/views.py:192
#: assets/views.py:260
msgid "Create asset group"
msgid "Create asset group"
msgstr "创建资产组"
msgstr "创建资产组"
#: assets/templates/assets/asset_group_list.html:27
#: assets/templates/assets/asset_list.html:71
#: assets/templates/assets/idc_assets.html:68
#: assets/templates/assets/idc_list.html:32
#: assets/templates/assets/system_user_list.html:31
#: users/templates/users/user_group_list.html:22
#: users/templates/users/user_list.html:39
msgid "Delete selected"
msgstr "批量删除"
#: assets/templates/assets/asset_group_list.html:28
#: assets/templates/assets/asset_group_list.html:28
#: assets/templates/assets/asset_list.html:72
#: assets/templates/assets/asset_list.html:72
#: assets/templates/assets/asset_tags_list.html:75
#: assets/templates/assets/system_user_list.html:32
#: assets/templates/assets/system_user_list.html:32
#: users/templates/users/user_list.html:40
#: users/templates/users/user_list.html:40
msgid "Update selected"
msgid "Update selected"
msgstr "批量更新"
msgstr "批量更新"
#: assets/templates/assets/asset_group_list.html:96
#: assets/templates/assets/asset_group_list.html:95
#: assets/templates/assets/asset_list.html:230
#: assets/templates/assets/idc_assets.html:259
#: assets/templates/assets/idc_list.html:94
#: assets/templates/assets/system_user_list.html:97
#: assets/templates/assets/user_asset_list.html:162
#: users/templates/users/user_detail.html:332
#: users/templates/users/user_detail.html:357
#: users/templates/users/user_group_list.html:87
#: users/templates/users/user_group_list.html:87
#: users/templates/users/user_list.html:166
msgid "Are you sure?"
msgstr "你确认吗?"
#: assets/templates/assets/asset_group_list.html:96
#: users/templates/users/user_group_list.html:88
msgid "This will delete the selected groups !!!"
msgid "This will delete the selected groups !!!"
msgstr "删除选择组"
msgstr "删除选择组"
#: assets/templates/assets/asset_group_list.html:100
#: assets/templates/assets/asset_list.html:235
#: assets/templates/assets/idc_assets.html:264
#: assets/templates/assets/idc_list.html:99
#: assets/templates/assets/system_user_list.html:102
#: assets/templates/assets/user_asset_list.html:167 templates/_modal.html:16
#: users/templates/users/user_detail.html:337
#: users/templates/users/user_detail.html:362
#: users/templates/users/user_detail.html:385
#: users/templates/users/user_group_list.html:92
#: users/templates/users/user_list.html:171
#: users/templates/users/user_profile.html:181
msgid "Confirm"
msgstr "确认"
#: assets/templates/assets/asset_group_list.html:104
#: assets/templates/assets/asset_group_list.html:104
msgid "Group
Deleted.
"
msgid "Group
deleted
"
msgstr "组已被删除"
msgstr "组已被删除"
#: assets/templates/assets/asset_group_list.html:105
#: assets/templates/assets/asset_group_list.html:105
...
@@ -1082,7 +1049,7 @@ msgid "Group Delete"
...
@@ -1082,7 +1049,7 @@ msgid "Group Delete"
msgstr "删除"
msgstr "删除"
#: assets/templates/assets/asset_group_list.html:109
#: assets/templates/assets/asset_group_list.html:109
msgid "Group
D
eleting failed."
msgid "Group
d
eleting failed."
msgstr "删除失败"
msgstr "删除失败"
#: assets/templates/assets/asset_group_list.html:172
#: assets/templates/assets/asset_group_list.html:172
...
@@ -1096,7 +1063,7 @@ msgstr "资产组更新"
...
@@ -1096,7 +1063,7 @@ msgstr "资产组更新"
#: assets/templates/assets/asset_list.html:21
#: assets/templates/assets/asset_list.html:21
#: users/templates/users/user_list.html:7
#: users/templates/users/user_list.html:7
msgid "Import"
msgid "Import"
msgstr "导入
用户
"
msgstr "导入"
#: assets/templates/assets/asset_list.html:24
#: assets/templates/assets/asset_list.html:24
#: users/templates/users/user_list.html:10
#: users/templates/users/user_list.html:10
...
@@ -1108,16 +1075,18 @@ msgid "Create asset"
...
@@ -1108,16 +1075,18 @@ msgid "Create asset"
msgstr "创建资产"
msgstr "创建资产"
#: assets/templates/assets/asset_list.html:58
#: assets/templates/assets/asset_list.html:58
#: assets/templates/assets/user_asset_list.html:37
msgid "Env"
msgid "Env"
msgstr "环境"
msgstr "环境"
#: assets/templates/assets/asset_list.html:59
#: assets/templates/assets/asset_list.html:59
#: assets/templates/assets/user_asset_list.html:38
msgid "Hardware"
msgid "Hardware"
msgstr "硬件"
msgstr "硬件"
#: assets/templates/assets/asset_list.html:60
#: assets/templates/assets/asset_list.html:60
#: assets/templates/assets/asset_tag_detail.html:85
#: assets/templates/assets/idc_assets.html:58
#: assets/templates/assets/idc_assets.html:58
#: assets/templates/assets/user_asset_list.html:39
#: users/templates/users/user_asset_permission.html:58
#: users/templates/users/user_asset_permission.html:58
#: users/templates/users/user_granted_asset.html:56
#: users/templates/users/user_granted_asset.html:56
#: users/templates/users/user_group_asset_permission.html:58
#: users/templates/users/user_group_asset_permission.html:58
...
@@ -1130,66 +1099,52 @@ msgstr "可用"
...
@@ -1130,66 +1099,52 @@ msgstr "可用"
msgid "Deactive selected"
msgid "Deactive selected"
msgstr "禁用所选"
msgstr "禁用所选"
#: assets/templates/assets/asset_list.html:2
24
#: assets/templates/assets/asset_list.html:2
31
#: assets/templates/assets/idc_assets.html:260
#: assets/templates/assets/idc_assets.html:260
#: assets/templates/assets/user_asset_list.html:163
msgid "This will delete the selected assets !!!"
msgid "This will delete the selected assets !!!"
msgstr "删除选择资产"
msgstr "删除选择资产"
# msgid "Deleted!"
# msgid "Deleted!"
# msgstr "删除"
# msgstr "删除"
#: assets/templates/assets/asset_list.html:23
2
#: assets/templates/assets/asset_list.html:23
9
#: assets/templates/assets/idc_assets.html:268
#: assets/templates/assets/idc_assets.html:268
#: assets/templates/assets/user_asset_list.html:171
msgid "Asset Deleted."
msgid "Asset Deleted."
msgstr "已被删除"
msgstr "已被删除"
#: assets/templates/assets/asset_list.html:2
33
#: assets/templates/assets/asset_list.html:2
40
#: assets/templates/assets/asset_list.html:2
38
#: assets/templates/assets/asset_list.html:2
45
#: assets/templates/assets/idc_assets.html:269
#: assets/templates/assets/idc_assets.html:269
#: assets/templates/assets/idc_assets.html:274
#: assets/templates/assets/idc_assets.html:274
#: assets/templates/assets/user_asset_list.html:172
#: assets/templates/assets/user_asset_list.html:177
msgid "Asset Delete"
msgid "Asset Delete"
msgstr "删除"
msgstr "删除"
#: assets/templates/assets/asset_list.html:2
37
#: assets/templates/assets/asset_list.html:2
44
#: assets/templates/assets/idc_assets.html:273
#: assets/templates/assets/idc_assets.html:273
#: assets/templates/assets/user_asset_list.html:176
msgid "Asset Deleting failed."
msgid "Asset Deleting failed."
msgstr "删除失败"
msgstr "删除失败"
#: assets/templates/assets/asset_list.html:3
15
#: assets/templates/assets/asset_list.html:3
22
#: assets/templates/assets/idc_assets.html:351
#: assets/templates/assets/idc_assets.html:351
#: assets/templates/assets/user_asset_list.html:254
msgid "The selected assets has been updated successfully."
msgid "The selected assets has been updated successfully."
msgstr "选择资产更新成功"
msgstr "选择资产更新成功"
#: assets/templates/assets/asset_list.html:3
16
#: assets/templates/assets/asset_list.html:3
23
#: assets/templates/assets/idc_assets.html:352
#: assets/templates/assets/idc_assets.html:352
#: assets/templates/assets/user_asset_list.html:255
msgid "Asset Updated"
msgid "Asset Updated"
msgstr "更新"
msgstr "更新"
#: assets/templates/assets/asset_tag_detail.html:43
msgid "Tag Name"
msgstr "名称"
#: assets/templates/assets/asset_tag_detail.html:98
msgid "Add asset to this tag"
msgstr "添加标签"
#: assets/templates/assets/asset_tags_list.html:57
#, fuzzy
#| msgid "Create asset"
msgid "Create Tag"
msgstr "创建标签"
#: assets/templates/assets/asset_tags_list.html:63
msgid "TagName"
msgstr "名称"
#: assets/templates/assets/asset_update.html:36
#: assets/templates/assets/asset_update.html:36
#, fuzzy
#| msgid "Confirm delete"
msgid "Configuration"
msgid "Configuration"
msgstr "配置"
msgstr "配置"
#: assets/templates/assets/asset_update.html:41
#: assets/templates/assets/asset_update.html:41
#, fuzzy
msgid "Location"
msgid "Location"
msgstr "位置"
msgstr "位置"
...
@@ -1201,77 +1156,53 @@ msgstr "确认删除"
...
@@ -1201,77 +1156,53 @@ msgstr "确认删除"
#: assets/templates/assets/delete_confirm.html:11
#: assets/templates/assets/delete_confirm.html:11
msgid "Are you sure delete"
msgid "Are you sure delete"
msgstr "
确定删除
"
msgstr "
您确定删除吗?
"
#: assets/templates/assets/idc_assets.html:23
#: assets/templates/assets/idc_assets.html:23
#: assets/templates/assets/idc_assets.html:31
#: assets/templates/assets/idc_assets.html:31
#: assets/templates/assets/idc_detail.html:21
#: assets/templates/assets/idc_detail.html:21
#, fuzzy
#| msgid "Assets"
msgid "IDC assets"
msgid "IDC assets"
msgstr "IDC资产"
msgstr "IDC资产"
#: assets/templates/assets/idc_assets.html:84
#: assets/templates/assets/idc_assets.html:84
#, fuzzy
msgid "Add assets to"
#| msgid "User assets"
msgstr "添加资产到"
msgid "Attach assets to IDC "
msgstr "添加资产到IDC"
#: assets/templates/assets/idc_assets.html:101
#, fuzzy
#| msgid "User assets"
msgid "Attach Assets"
msgstr "添加资产"
#: assets/templates/assets/idc_list.html:10 assets/views.py:297
#: assets/templates/assets/idc_list.html:10 assets/views/idc.py:39
#, fuzzy
#| msgid "Created by"
msgid "Create IDC"
msgid "Create IDC"
msgstr "创建
者
"
msgstr "创建
IDC
"
#: assets/templates/assets/idc_list.html:9
4
#: assets/templates/assets/idc_list.html:9
5
msgid "This will delete the selected idc
!!!
"
msgid "This will delete the selected idc"
msgstr "删除选择IDC"
msgstr "删除选择IDC"
# msgid "Deleted!"
#: assets/templates/assets/idc_list.html:103
# msgstr "删除"
#: assets/templates/assets/idc_list.html:102
#, fuzzy
#| msgid "has been deleted."
msgid "IDC Deleted."
msgid "IDC Deleted."
msgstr "已被删除"
msgstr "已被删除"
#: assets/templates/assets/idc_list.html:103
#: assets/templates/assets/idc_list.html:104
#: assets/templates/assets/idc_list.html:108
#: assets/templates/assets/idc_list.html:109
#, fuzzy
#| msgid "Delete"
msgid "IDC Delete"
msgid "IDC Delete"
msgstr "删除"
msgstr "删除"
#: assets/templates/assets/idc_list.html:107
#: assets/templates/assets/idc_list.html:108
#, fuzzy
#| msgid "User detail"
msgid "IDC Deleting failed."
msgid "IDC Deleting failed."
msgstr "IDC删除失败"
msgstr "IDC删除失败"
#: assets/templates/assets/system_user_asset.html:20
#: assets/templates/assets/system_user_asset.html:20
#: assets/templates/assets/system_user_detail.html:21
#: assets/templates/assets/system_user_detail.html:21
msgid "Ass
ociate assets and asset groups
"
msgid "Ass
ets of system user
"
msgstr "
关联资产和资产组
"
msgstr "
系统用户关联资产
"
#: assets/templates/assets/system_user_asset.html:28
#: assets/templates/assets/system_user_asset.html:28
#, fuzzy
msgid "Assets of "
#| msgid "Asset group list"
msgstr "资产"
msgid "Assets attached of "
msgstr "关联资产"
#: assets/templates/assets/system_user_asset.html:50
#: assets/templates/assets/system_user_asset.html:50
msgid "Reachable"
msgid "Reachable"
msgstr "可连接"
msgstr "可连接"
#: assets/templates/assets/system_user_asset.html:79
#: assets/templates/assets/system_user_asset.html:79
#, fuzzy
#| msgid "User assets"
msgid "Attach to assets "
msgid "Attach to assets "
msgstr "关联资产"
msgstr "关联资产"
...
@@ -1280,8 +1211,6 @@ msgid "Attach Asset"
...
@@ -1280,8 +1211,6 @@ msgid "Attach Asset"
msgstr "关联资产"
msgstr "关联资产"
#: assets/templates/assets/system_user_asset.html:107
#: assets/templates/assets/system_user_asset.html:107
#, fuzzy
#| msgid "Select asset groups"
msgid "Attach to asset groups"
msgid "Attach to asset groups"
msgstr "关联资产组"
msgstr "关联资产组"
...
@@ -1290,8 +1219,6 @@ msgid "Add asset group"
...
@@ -1290,8 +1219,6 @@ msgid "Add asset group"
msgstr "资产组"
msgstr "资产组"
#: assets/templates/assets/system_user_asset.html:124
#: assets/templates/assets/system_user_asset.html:124
#, fuzzy
#| msgid "Select asset groups"
msgid "Attach AssetGroup"
msgid "Attach AssetGroup"
msgstr "添加到资产组"
msgstr "添加到资产组"
...
@@ -1312,8 +1239,6 @@ msgid "Unavailable num"
...
@@ -1312,8 +1239,6 @@ msgid "Unavailable num"
msgstr "不可连接数量"
msgstr "不可连接数量"
#: assets/templates/assets/system_user_asset_group.html:77
#: assets/templates/assets/system_user_asset_group.html:77
#, fuzzy
#| msgid "Asset group list"
msgid "Add asset group to this system user"
msgid "Add asset group to this system user"
msgstr "资产组列表"
msgstr "资产组列表"
...
@@ -1324,8 +1249,6 @@ msgid "Select asset group"
...
@@ -1324,8 +1249,6 @@ msgid "Select asset group"
msgstr "添加到资产组"
msgstr "添加到资产组"
#: assets/templates/assets/system_user_detail.html:68
#: assets/templates/assets/system_user_detail.html:68
#, fuzzy
#| msgid "Auto update pass/key"
msgid "Auto update"
msgid "Auto update"
msgstr "自动更新密码/密钥"
msgstr "自动更新密码/密钥"
...
@@ -1335,7 +1258,7 @@ msgstr "默认使用"
...
@@ -1335,7 +1258,7 @@ msgstr "默认使用"
#: assets/templates/assets/system_user_detail.html:87
#: assets/templates/assets/system_user_detail.html:87
#: templates/_header_bar.html:41 templates/_nav.html:4
#: templates/_header_bar.html:41 templates/_nav.html:4
msgid "
Home
"
msgid "
Dashboard
"
msgstr "仪表盘"
msgstr "仪表盘"
#: assets/templates/assets/system_user_detail.html:93
#: assets/templates/assets/system_user_detail.html:93
...
@@ -1343,7 +1266,7 @@ msgid "Uid"
...
@@ -1343,7 +1266,7 @@ msgid "Uid"
msgstr "Uid"
msgstr "Uid"
#: assets/templates/assets/system_user_detail.html:124
#: assets/templates/assets/system_user_detail.html:124
msgid "Get man
n
ual install script"
msgid "Get manual install script"
msgstr "获得手动安装脚本"
msgstr "获得手动安装脚本"
#: assets/templates/assets/system_user_list.html:20
#: assets/templates/assets/system_user_list.html:20
...
@@ -1354,116 +1277,80 @@ msgstr "不可达"
...
@@ -1354,116 +1277,80 @@ msgstr "不可达"
msgid "This will delete the selected System Users !!!"
msgid "This will delete the selected System Users !!!"
msgstr "删除选择系统用户"
msgstr "删除选择系统用户"
# msgid "Deleted!"
# msgstr "删除"
#: assets/templates/assets/system_user_list.html:106
#: assets/templates/assets/system_user_list.html:106
#, fuzzy
#| msgid "has been deleted."
msgid "System Users Deleted."
msgid "System Users Deleted."
msgstr "已被删除"
msgstr "已被删除"
#: assets/templates/assets/system_user_list.html:107
#: assets/templates/assets/system_user_list.html:107
#: assets/templates/assets/system_user_list.html:112
#: assets/templates/assets/system_user_list.html:112
#, fuzzy
#| msgid "System user"
msgid "System Users Delete"
msgid "System Users Delete"
msgstr "
系统
"
msgstr "
删除系统用户
"
#: assets/templates/assets/system_user_list.html:111
#: assets/templates/assets/system_user_list.html:111
#, fuzzy
#| msgid "User detail"
msgid "System Users Deleting failed."
msgid "System Users Deleting failed."
msgstr "用户详情"
msgstr "系统用户删除失败"
#: assets/views/admin_user.py:28
msgid "Admin user list"
msgstr "管理用户列表"
#: assets/views.py:215
#: assets/views/admin_user.py:52
msgid "Create admin user <a href=\"{url}\">{name}</a> successfully."
msgstr "创建管理用户 <a href=\"{url}\">{name}</a> 成功"
#: assets/views/group.py:54
msgid "Asset group list"
msgid "Asset group list"
msgstr "资产组列表"
msgstr "资产组列表"
#: assets/views.py:235
#: assets/views/group.py:74
#, fuzzy
#| msgid "Asset group list"
msgid "Asset group detail"
msgid "Asset group detail"
msgstr "资产组
列表
"
msgstr "资产组
详情
"
#: assets/views
.py:281
#: assets/views
/idc.py:23
msgid "IDC list"
msgid "IDC list"
msgstr "IDC列表"
msgstr "IDC列表"
#: assets/views.py:296 assets/views.py:323
#: assets/views/idc.py:38 assets/views/idc.py:65
#, fuzzy
#| msgid "Assets"
msgid "assets"
msgid "assets"
msgstr "资产管理"
msgstr "资产管理"
#: assets/views.py:324
#: assets/views/idc.py:66
#, fuzzy
#| msgid "Update"
msgid "Update IDC"
msgid "Update IDC"
msgstr "更新"
msgstr "更新IDC"
#: assets/views.py:369
#, fuzzy
#| msgid "Admin user"
msgid "Admin user list"
msgstr "管理用户列表"
#: assets/views.py:393
#, fuzzy, python-format
#| msgid "Create user <a href=\"%s\">%s</a> success."
msgid "Create admin user <a href=\"%s\">%s</a> successfully."
msgstr "创建管理用户 <a href=\"%s\">%s</a> 成功"
#: assets/views.py:466
#: assets/views/system_user.py:29
#, fuzzy
#| msgid "System user"
msgid "System user list"
msgid "System user list"
msgstr "系统用户列表"
msgstr "系统用户列表"
#: assets/views.py:495
#: assets/views/system_user.py:61
#, fuzzy, python-format
msgid "Create system user <a href=\"{url}\">{name}</a> successfully."
#| msgid "Create user <a href=\"%s\">%s</a> success."
msgstr "创建系统用户 <a href=\"{url}\">{name}</a> 成功"
msgid "Create system user <a href=\"%s\">%s</a> successfully."
msgstr "创建系统用户 <a href=\"%s\">%s</a> 成功"
#: assets/views.py:512
#: assets/views/system_user.py:76
#, fuzzy
#| msgid "Update user"
msgid "Update system user"
msgid "Update system user"
msgstr "
编辑
用户"
msgstr "
更新系统
用户"
#: assets/views.py:530
#: assets/views/system_user.py:95
#, fuzzy
#| msgid "System user"
msgid "System user detail"
msgid "System user detail"
msgstr "系统用户详情"
msgstr "系统用户详情"
#: audits/models.py:20 audits/models.py:45
#: audits/models.py:20 audits/models.py:45
#, fuzzy
#| msgid "Login"
msgid "Login type"
msgid "Login type"
msgstr "登录方式"
msgstr "登录方式"
#: audits/models.py:21
#: audits/models.py:21
#, fuzzy
#| msgid "Login"
msgid "Login ip"
msgid "Login ip"
msgstr "登录IP"
msgstr "登录IP"
#: audits/models.py:23
#: audits/models.py:23
#, fuzzy
#| msgid "Login"
msgid "Login city"
msgid "Login city"
msgstr "登录城市"
msgstr "登录城市"
#: audits/models.py:25
#: audits/models.py:25
#, fuzzy
#| msgid "User assets"
msgid "User agent"
msgid "User agent"
msgstr "Agent"
msgstr "Agent"
#: audits/models.py:27
#: audits/models.py:27
#, fuzzy
#| msgid "Last login"
msgid "Date login"
msgid "Date login"
msgstr "登录日期"
msgstr "登录日期"
...
@@ -1505,14 +1392,10 @@ msgstr "结束"
...
@@ -1505,14 +1392,10 @@ msgstr "结束"
#: audits/models.py:53 audits/templates/audits/proxy_log_offline_list.html:72
#: audits/models.py:53 audits/templates/audits/proxy_log_offline_list.html:72
#: audits/templates/audits/proxy_log_online_list.html:72
#: audits/templates/audits/proxy_log_online_list.html:72
#: ops/templates/ops/task_detail.html:54 ops/templates/ops/task_list.html:43
#: ops/templates/ops/task_detail.html:54 ops/templates/ops/task_list.html:43
#, fuzzy
#| msgid "Date added"
msgid "Date start"
msgid "Date start"
msgstr "开始日期"
msgstr "开始日期"
#: audits/models.py:55 ops/templates/ops/task_detail.html:58
#: audits/models.py:55 ops/templates/ops/task_detail.html:58
#, fuzzy
#| msgid "Date joined"
msgid "Date finished"
msgid "Date finished"
msgstr "结束日期"
msgstr "结束日期"
...
@@ -1522,8 +1405,6 @@ msgstr "输出"
...
@@ -1522,8 +1405,6 @@ msgstr "输出"
#: audits/templates/audits/login_log_list.html:27
#: audits/templates/audits/login_log_list.html:27
#: perms/templates/perms/asset_permission_user.html:109
#: perms/templates/perms/asset_permission_user.html:109
#, fuzzy
#| msgid "Select assets"
msgid "Select user"
msgid "Select user"
msgstr "选择用户"
msgstr "选择用户"
...
@@ -1531,8 +1412,6 @@ msgstr "选择用户"
...
@@ -1531,8 +1412,6 @@ msgstr "选择用户"
#: audits/templates/audits/proxy_log_offline_list.html:63
#: audits/templates/audits/proxy_log_offline_list.html:63
#: audits/templates/audits/proxy_log_online_list.html:63
#: audits/templates/audits/proxy_log_online_list.html:63
#: perms/templates/perms/asset_permission_list.html:10
#: perms/templates/perms/asset_permission_list.html:10
#, fuzzy
#| msgid "IDC"
msgid "ID"
msgid "ID"
msgstr "ID"
msgstr "ID"
...
@@ -1558,8 +1437,6 @@ msgstr "命令记录列表"
...
@@ -1558,8 +1437,6 @@ msgstr "命令记录列表"
#: audits/templates/audits/proxy_log_offline_list.html:68
#: audits/templates/audits/proxy_log_offline_list.html:68
#: audits/templates/audits/proxy_log_online_list.html:68
#: audits/templates/audits/proxy_log_online_list.html:68
#, fuzzy
#| msgid "Comment"
msgid "Command"
msgid "Command"
msgstr "命令"
msgstr "命令"
...
@@ -1590,8 +1467,6 @@ msgid "Monitor"
...
@@ -1590,8 +1467,6 @@ msgid "Monitor"
msgstr "监控"
msgstr "监控"
#: audits/templates/audits/proxy_log_online_list.html:120
#: audits/templates/audits/proxy_log_online_list.html:120
#, fuzzy
#| msgid "Deactive selected"
msgid "Terminate selected"
msgid "Terminate selected"
msgstr "终止所选"
msgstr "终止所选"
...
@@ -1622,7 +1497,7 @@ msgstr ""
...
@@ -1622,7 +1497,7 @@ msgstr ""
#: ops/models.py:18 ops/templates/ops/task_detail.html:46
#: ops/models.py:18 ops/templates/ops/task_detail.html:46
msgid "UUID"
msgid "UUID"
msgstr ""
msgstr "
UUID
"
#: ops/models.py:20
#: ops/models.py:20
msgid "Start time"
msgid "Start time"
...
@@ -1633,16 +1508,12 @@ msgid "End time"
...
@@ -1633,16 +1508,12 @@ msgid "End time"
msgstr "完成时间"
msgstr "完成时间"
#: ops/models.py:24
#: ops/models.py:24
#, fuzzy
#| msgid "Logout success"
msgid "Is success"
msgid "Is success"
msgstr "是否成功"
msgstr "是否成功"
#: ops/models.py:25
#: ops/models.py:25
#, fuzzy
msgid "Assets id"
#| msgid "Asset group list"
msgstr "资产id"
msgid "Assets for id"
msgstr "资产组列表"
#: ops/models.py:26
#: ops/models.py:26
msgid "Task module and args json format"
msgid "Task module and args json format"
...
@@ -1661,104 +1532,81 @@ msgid "Task summary"
...
@@ -1661,104 +1532,81 @@ msgid "Task summary"
msgstr ""
msgstr ""
#: ops/templates/ops/task_detail.html:19
#: ops/templates/ops/task_detail.html:19
#, fuzzy
#| msgid "User detail"
msgid "Task record detail"
msgid "Task record detail"
msgstr "
用户
详情"
msgstr "
任务记录
详情"
#: ops/templates/ops/task_detail.html:62
#: ops/templates/ops/task_detail.html:62
msgid "Time delta"
msgid "Time delta"
msgstr ""
msgstr "
运行时间
"
#: ops/templates/ops/task_detail.html:70
#: ops/templates/ops/task_detail.html:70
#, fuzzy
#| msgid "Logout success"
msgid "Is success "
msgid "Is success "
msgstr "
退出登录
成功"
msgstr "成功"
#: ops/templates/ops/task_detail.html:84
#: ops/templates/ops/task_detail.html:84
#, fuzzy
#| msgid "Assets"
msgid "Assets "
msgid "Assets "
msgstr "资产管理"
msgstr "资产管理"
#: ops/templates/ops/task_detail.html:126
#: ops/templates/ops/task_detail.html:126
#, fuzzy
#| msgid "Select assets"
msgid "Failed assets"
msgid "Failed assets"
msgstr "
选择
资产"
msgstr "
失败
资产"
#: ops/templates/ops/task_detail.html:142
#: ops/templates/ops/task_detail.html:142
#: ops/templates/ops/task_detail.html:167
#: ops/templates/ops/task_detail.html:167
#, fuzzy
#| msgid "Assets"
msgid "No assets"
msgid "No assets"
msgstr "
资产管理
"
msgstr "
没有资产
"
#: ops/templates/ops/task_detail.html:152
#: ops/templates/ops/task_detail.html:152
#, fuzzy
#| msgid "Select assets"
msgid "Success assets"
msgid "Success assets"
msgstr "
选择
资产"
msgstr "
成功
资产"
#: ops/templates/ops/task_list.html:71
#: ops/templates/ops/task_list.html:71
msgid "Run again"
msgid "Run again"
msgstr "再次执行"
msgstr "再次执行"
#: perms/forms.py:21
#: perms/forms.py:21
#, fuzzy
#| msgid "Select assets"
msgid "Select users"
msgid "Select users"
msgstr "选择
资产
"
msgstr "选择
用户
"
#: perms/forms.py:24 perms/templates/perms/asset_permission_user.html:137
#: perms/forms.py:24 perms/templates/perms/asset_permission_user.html:137
#, fuzzy
#| msgid "Select asset groups"
msgid "Select user groups"
msgid "Select user groups"
msgstr "添加到
资产
组"
msgstr "添加到
用户
组"
#: perms/forms.py:33 perms/templates/perms/asset_permission_detail.html:161
#: perms/forms.py:33 perms/templates/perms/asset_permission_detail.html:161
#: users/forms.py:105 users/forms.py:132
#: users/forms.py:156 users/forms.py:182
#, fuzzy
#| msgid "System user"
msgid "Select system users"
msgid "Select system users"
msgstr "
系统
"
msgstr "
选择系统用户
"
#: perms/models.py:35 perms/templates/perms/asset_permission_detail.html:86
#: perms/models.py:35 perms/templates/perms/asset_permission_detail.html:86
#: users/models/user.py:46 users/templates/users/user_detail.html:93
#: users/models/user.py:46 users/templates/users/user_detail.html:93
#: users/templates/users/user_profile.html:96
msgid "Date expired"
msgid "Date expired"
msgstr "失效日期"
msgstr "失效日期"
#: perms/templates/perms/asset_permission_asset.html:22
#: perms/templates/perms/asset_permission_asset.html:22
#: perms/templates/perms/asset_permission_detail.html:22
#: perms/templates/perms/asset_permission_detail.html:22
#: perms/templates/perms/asset_permission_user.html:22
#: perms/templates/perms/asset_permission_user.html:22
#, fuzzy
#| msgid "Join user groups"
msgid "Users and user groups"
msgid "Users and user groups"
msgstr "
添加到
用户组"
msgstr "
用户或
用户组"
#: perms/templates/perms/asset_permission_asset.html:27
#: perms/templates/perms/asset_permission_asset.html:27
#: perms/templates/perms/asset_permission_detail.html:27
#: perms/templates/perms/asset_permission_detail.html:27
#: perms/templates/perms/asset_permission_user.html:27
#: perms/templates/perms/asset_permission_user.html:27
#, fuzzy
#| msgid "Select asset groups"
msgid "Assets and asset groups"
msgid "Assets and asset groups"
msgstr "
添加到
资产组"
msgstr "
资产或
资产组"
#: perms/templates/perms/asset_permission_asset.html:67
#: perms/templates/perms/asset_permission_asset.html:67
#: perms/templates/perms/asset_permission_list.html:17
#: perms/templates/perms/asset_permission_list.html:17
#: perms/templates/perms/asset_permission_user.html:67
#: perms/templates/perms/asset_permission_user.html:67
msgid "Is valid"
msgid "Is valid"
msgstr ""
msgstr "
有效
"
#: perms/templates/perms/asset_permission_asset.html:101
#: perms/templates/perms/asset_permission_asset.html:101
msgid "Add asset to this permission"
msgid "Add asset to this permission"
msgstr "添加资产"
msgstr "添加资产"
#: perms/templates/perms/asset_permission_asset.html:109
#: perms/templates/perms/asset_permission_asset.html:109
#, fuzzy
msgid "Select assets"
#| msgid "Select assets"
msgid "Select asset "
msgstr "选择资产"
msgstr "选择资产"
#: perms/templates/perms/asset_permission_asset.html:129
#: perms/templates/perms/asset_permission_asset.html:129
...
@@ -1766,44 +1614,30 @@ msgid "Add asset group to this permission"
...
@@ -1766,44 +1614,30 @@ msgid "Add asset group to this permission"
msgstr "添加资产组"
msgstr "添加资产组"
#: perms/templates/perms/asset_permission_create_update.html:17
#: perms/templates/perms/asset_permission_create_update.html:17
#, fuzzy
#| msgid "Create asset group"
msgid "Create asset permission "
msgid "Create asset permission "
msgstr "创建资产
组
"
msgstr "创建资产
权限
"
#: perms/templates/perms/asset_permission_detail.html:66
#: perms/templates/perms/asset_permission_detail.html:66
#, fuzzy
#| msgid "User group"
msgid "User count"
msgid "User count"
msgstr "用户
组
"
msgstr "用户
数量
"
#: perms/templates/perms/asset_permission_detail.html:70
#: perms/templates/perms/asset_permission_detail.html:70
#, fuzzy
#| msgid "User group list"
msgid "User group count"
msgid "User group count"
msgstr "用户组列表"
msgstr "用户组列表"
#: perms/templates/perms/asset_permission_detail.html:74
#: perms/templates/perms/asset_permission_detail.html:74
#, fuzzy
#| msgid "Asset group"
msgid "Asset count"
msgid "Asset count"
msgstr "资产
组
"
msgstr "资产
数量
"
#: perms/templates/perms/asset_permission_detail.html:78
#: perms/templates/perms/asset_permission_detail.html:78
#, fuzzy
#| msgid "Asset group list"
msgid "Asset group count"
msgid "Asset group count"
msgstr "资产组
列表
"
msgstr "资产组
数量
"
#: perms/templates/perms/asset_permission_detail.html:82
#: perms/templates/perms/asset_permission_detail.html:82
#, fuzzy
#| msgid "System user"
msgid "System user count"
msgid "System user count"
msgstr "系统用户"
msgstr "系统用户
数量
"
#: perms/templates/perms/asset_permission_detail.html:139
#: perms/templates/perms/asset_permission_detail.html:139
#, fuzzy
#| msgid "System user"
msgid "Repush system user"
msgid "Repush system user"
msgstr "重新推送系统"
msgstr "重新推送系统"
...
@@ -1812,10 +1646,8 @@ msgid "Push"
...
@@ -1812,10 +1646,8 @@ msgid "Push"
msgstr "推送"
msgstr "推送"
#: perms/templates/perms/asset_permission_list.html:5
#: perms/templates/perms/asset_permission_list.html:5
#, fuzzy
#| msgid "Create perm"
msgid "Create permission"
msgid "Create permission"
msgstr "创建
权限
"
msgstr "创建
授权规则
"
#: perms/templates/perms/asset_permission_list.html:13 templates/_nav.html:13
#: perms/templates/perms/asset_permission_list.html:13 templates/_nav.html:13
#: users/models/user.py:34 users/templates/users/_select_user_modal.html:16
#: users/models/user.py:34 users/templates/users/_select_user_modal.html:16
...
@@ -1831,67 +1663,61 @@ msgid "Asset group"
...
@@ -1831,67 +1663,61 @@ msgid "Asset group"
msgstr "资产组"
msgstr "资产组"
#: perms/templates/perms/asset_permission_user.html:45
#: perms/templates/perms/asset_permission_user.html:45
#, fuzzy
#| msgid "User list"
msgid "User list of "
msgid "User list of "
msgstr "用户列表"
msgstr "用户列表"
#: perms/templates/perms/asset_permission_user.html:66 users/models/user.py:33
#: perms/templates/perms/asset_permission_user.html:66 users/models/user.py:33
#: users/templates/users/user_detail.html:73
#: users/templates/users/user_detail.html:73
#: users/templates/users/user_profile.html:59
msgid "Email"
msgid "Email"
msgstr "邮件"
msgstr "邮件"
#: perms/templates/perms/asset_permission_user.html:101
#: perms/templates/perms/asset_permission_user.html:101
msgid "Add user to asset permission"
msgid "Add user to asset permission"
msgstr ""
msgstr "
添加用户
"
#: perms/templates/perms/asset_permission_user.html:129
#: perms/templates/perms/asset_permission_user.html:129
#, fuzzy
#| msgid "Asset group list"
msgid "Add user group to asset permission"
msgid "Add user group to asset permission"
msgstr "
资产组列表
"
msgstr "
添加用户组
"
#: perms/views.py:33 perms/views.py:76 perms/views.py:11
0 perms/views.py:136
#: perms/views.py:33 perms/views.py:76 perms/views.py:11
1 perms/views.py:139
#: perms/views.py:18
0 perms/views.py:222
templates/_nav.html:29
#: perms/views.py:18
3 perms/views.py:225
templates/_nav.html:29
msgid "Perms"
msgid "Perms"
msgstr "权限管理"
msgstr "权限管理"
#: perms/views.py:34
#: perms/views.py:34
#, fuzzy
msgid "Asset permission list"
msgid "Asset permission list"
msgstr "资产授权列表"
msgstr "资产授权列表"
#: perms/views.py:77
#: perms/views.py:77
msgid "Create asset permission"
msgid "Create asset permission"
msgstr "创建
资产权限
"
msgstr "创建
权限规则
"
#: perms/views.py:8
4
#: perms/views.py:8
6
msgid "Create asset permission <a href=\"
%s\"> %s
</a> successfully."
msgid "Create asset permission <a href=\"
{url}\"> {name}
</a> successfully."
msgstr "创建授权 <a href=\"
%s\">%s</a>
成功"
msgstr "创建授权 <a href=\"
{url}\"> {name} </a>
成功"
#: perms/views.py:10
5
#: perms/views.py:10
6
msgid "Update asset permission <a href=\"
%s\"> %s
</a> successfully."
msgid "Update asset permission <a href=\"
{url}\"> {name}
</a> successfully."
msgstr "更新授权 <a href=\"
%s\">%s</a>
成功"
msgstr "更新授权 <a href=\"
{url}\"> {name} </a>
成功"
#: perms/views.py:11
1
#: perms/views.py:11
2
msgid "Update asset permission"
msgid "Update asset permission"
msgstr "更新资产授权"
msgstr "更新资产授权"
#: perms/views.py:137
#: perms/views.py:140
#, fuzzy
#| msgid "Asset environment"
msgid "Asset permission detail"
msgid "Asset permission detail"
msgstr "资产
权限
详情"
msgstr "资产
授权
详情"
#: perms/views.py:18
1
#: perms/views.py:18
4
msgid "Asset permission user list"
msgid "Asset permission user list"
msgstr "资产授权包含用户"
msgstr "资产授权包含用户"
#: perms/views.py:22
3
#: perms/views.py:22
6
msgid "Asset permission asset list"
msgid "Asset permission asset list"
msgstr "资产组授权包含资产"
msgstr "资产组授权包含资产"
#: templates/_header_bar.html:8
#: templates/_
base_list.html:44 templates/_
header_bar.html:8
msgid "Search"
msgid "Search"
msgstr "搜索"
msgstr "搜索"
...
@@ -1903,7 +1729,7 @@ msgstr "欢迎使用Jumpserver开源跳板机系统"
...
@@ -1903,7 +1729,7 @@ msgstr "欢迎使用Jumpserver开源跳板机系统"
msgid "Help"
msgid "Help"
msgstr "帮助"
msgstr "帮助"
#: templates/_header_bar.html:24 templates/_user_profile.html:2
1
#: templates/_header_bar.html:24 templates/_user_profile.html:2
2
msgid "Logout"
msgid "Logout"
msgstr "注销登录"
msgstr "注销登录"
...
@@ -1917,9 +1743,9 @@ msgid "Close"
...
@@ -1917,9 +1743,9 @@ msgid "Close"
msgstr "关闭"
msgstr "关闭"
#: templates/_nav.html:9 users/templates/users/user_group_create_update.html:28
#: templates/_nav.html:9 users/templates/users/user_group_create_update.html:28
#: users/views/group.py:3
0 users/views/group.py:43 users/views/group.py:7
0
#: users/views/group.py:3
1 users/views/group.py:45 users/views/group.py:8
0
#: users/views/group.py:
95 users/views/login.py:180 users/views/user.py:50
#: users/views/group.py:
105 users/views/login.py:185 users/views/user.py:54
#: users/views/user.py:
66 users/views/user.py:102 users/views/user.py:114
#: users/views/user.py:
70 users/views/user.py:106 users/views/user.py:118
msgid "Users"
msgid "Users"
msgstr "用户管理"
msgstr "用户管理"
...
@@ -1956,27 +1782,43 @@ msgstr "登录日志"
...
@@ -1956,27 +1782,43 @@ msgstr "登录日志"
msgid "Visit us"
msgid "Visit us"
msgstr "访问官网"
msgstr "访问官网"
#: templates/_user_profile.html:19 users/templates/users/_user.html:42
#: templates/_nav_user.html:4
msgid "My assets"
msgstr "我的资产"
#: templates/_nav_user.html:9 templates/_user_profile.html:19
#: users/templates/users/_user.html:42
#: users/templates/users/user_password_update.html:37
#: users/templates/users/user_profile.html:17
#: users/templates/users/user_profile_update.html:37
#: users/templates/users/user_profile_update.html:57
#: users/templates/users/user_pubkey_update.html:37
msgid "Profile"
msgid "Profile"
msgstr "个人信息"
msgstr "个人信息"
#: templates/base.html:28
#: templates/_user_profile.html:20
msgid "Profile settings"
msgstr "个人信息设置"
#: templates/base.html:27
#, python-format
#, python-format
msgid ""
msgid ""
"\n"
"\n"
" Your information was incomplete. Please click <a href="
" Your information was incomplete. Please click <a href="
"\"%(first_login_url)s\"> this link </a>to complete your information.\n"
"\"%(first_login_url)s\"> this link </a>to complete your information.\n"
" "
" "
msgstr ""
msgstr "你的信息不完整,请点击 <a href="
"\"%(first_login_url)s\"> 链接 </a>补充完整"
#: templates/base.html:3
8
#: templates/base.html:3
7
#, python-format
#, python-format
msgid ""
msgid ""
"\n"
"\n"
" Your ssh-public-key has been expired. Please click <a href="
" Your ssh-public-key has been expired. Please click <a href="
"\"%(profile_url)s\"> this link </a>to update your ssh-public-key.\n"
"\"%(profile_url)s\"> this link </a>to update your ssh-public-key.\n"
" "
" "
msgstr ""
msgstr "你的SSH key已经过期,点击 <a href="
"\"%(profile_url)s\"> 链接 <a> 更新"
#: templates/captcha/image.html:3
#: templates/captcha/image.html:3
msgid "Play CAPTCHA as audio file"
msgid "Play CAPTCHA as audio file"
...
@@ -1987,7 +1829,6 @@ msgid "Captcha"
...
@@ -1987,7 +1829,6 @@ msgid "Captcha"
msgstr "验证码"
msgstr "验证码"
#: templates/rest_framework/base.html:128
#: templates/rest_framework/base.html:128
#, fuzzy
msgid "Filters"
msgid "Filters"
msgstr "过滤"
msgstr "过滤"
...
@@ -2022,10 +1863,8 @@ msgid "Expired, more than 15 minutes"
...
@@ -2022,10 +1863,8 @@ msgid "Expired, more than 15 minutes"
msgstr ""
msgstr ""
#: users/authentication.py:109
#: users/authentication.py:109
#, fuzzy
#| msgid "Update"
msgid "User disabled."
msgid "User disabled."
msgstr "
更新
"
msgstr "
用户已禁用
"
#: users/authentication.py:124
#: users/authentication.py:124
msgid "Invalid token header. No credentials provided."
msgid "Invalid token header. No credentials provided."
...
@@ -2048,77 +1887,51 @@ msgstr ""
...
@@ -2048,77 +1887,51 @@ msgstr ""
msgid "Join user groups"
msgid "Join user groups"
msgstr "添加到用户组"
msgstr "添加到用户组"
#: users/forms.py:58
#: users/forms.py:69
#, fuzzy
msgid "Old password error"
#| msgid "Name"
msgstr "原来密码错误"
msgid "name"
msgstr "名称"
#: users/forms.py:59
#, fuzzy
#| msgid "Avatar"
msgid "avatar"
msgstr "头像"
#: users/forms.py:60
#, fuzzy
#| msgid "Wechat"
msgid "wechat"
msgstr "微信"
#: users/forms.py:61
#, fuzzy
#| msgid "Phone"
msgid "phone"
msgstr "手机"
#: users/forms.py:62
#: users/forms.py:77
#, fuzzy
msgid "Password does not match"
#| msgid "Enable OTP"
msgstr "密码不一致"
msgid "enable otp"
msgstr "二次验证"
#: users/forms.py:
67
users/models/user.py:42
#: users/forms.py:
89
users/models/user.py:42
msgid "ssh public key"
msgid "ssh public key"
msgstr "ssh公钥"
msgstr "ssh公钥"
#: users/forms.py:
68
#: users/forms.py:
90
msgid "ssh-rsa AAAA..."
msgid "ssh-rsa AAAA..."
msgstr ""
msgstr ""
#: users/forms.py:
69
#: users/forms.py:
91
msgid "Paste your id_rsa.pub here."
msgid "Paste your id_rsa.pub here."
msgstr ""
msgstr "
复制你的公钥到这里
"
#: users/forms.py:
74
#: users/forms.py:
103
msgid "Public key should not be the same as your old one."
msgid "Public key should not be the same as your old one."
msgstr ""
msgstr "
不能和原来的密钥相同
"
#: users/forms.py:78 users/serializers.py:41
#: users/forms.py:107 users/serializers.py:41
#, fuzzy
#| msgid "ssh private key"
msgid "Not a valid ssh public key"
msgid "Not a valid ssh public key"
msgstr "ssh密钥"
msgstr "ssh密钥
不合法
"
#: users/models/authentication.py:38
#: users/models/authentication.py:38
#, fuzzy
#| msgid "SSH private key"
msgid "Private Token"
msgid "Private Token"
msgstr "ssh密钥"
msgstr "ssh密钥"
#: users/models/user.py:26 users/models/user.py:2
38
#: users/models/user.py:26 users/models/user.py:2
49
msgid "Administrator"
msgid "Administrator"
msgstr "管理员"
msgstr "管理员"
#: users/models/user.py:28
#: users/models/user.py:28
#, fuzzy
msgid "Application"
msgid "Application"
msgstr "
激活
"
msgstr "
应用程序
"
#: users/models/user.py:35 users/templates/users/_select_user_modal.html:15
#: users/models/user.py:35 users/templates/users/_select_user_modal.html:15
#: users/templates/users/_user_bulk_update_modal.html:9
#: users/templates/users/_user_bulk_update_modal.html:9
#: users/templates/users/user_detail.html:89
#: users/templates/users/user_detail.html:89
#: users/templates/users/user_list.html:27
#: users/templates/users/user_list.html:27
#: users/templates/users/user_profile.html:55
msgid "Role"
msgid "Role"
msgstr "角色"
msgstr "角色"
...
@@ -2139,17 +1952,16 @@ msgstr "二次验证"
...
@@ -2139,17 +1952,16 @@ msgstr "二次验证"
msgid "ssh private key"
msgid "ssh private key"
msgstr "ssh密钥"
msgstr "ssh密钥"
#: users/models/user.py:2
41
#: users/models/user.py:2
52
msgid "Administrator is the super user of system"
msgid "Administrator is the super user of system"
msgstr "Administrator是初始的超级管理员"
msgstr "Administrator是初始的超级管理员"
#: users/templates/users/_select_user_modal.html:5
#: users/templates/users/_select_user_modal.html:5
#, fuzzy
#| msgid "Select assets"
msgid "Please Select User"
msgid "Please Select User"
msgstr "选择
资产
"
msgstr "选择
用户
"
#: users/templates/users/_user.html:13
#: users/templates/users/_user.html:13
#: users/templates/users/user_profile_update.html:51
msgid "Account"
msgid "Account"
msgstr "账户"
msgstr "账户"
...
@@ -2158,64 +1970,57 @@ msgid "Security and Role"
...
@@ -2158,64 +1970,57 @@ msgid "Security and Role"
msgstr "角色安全"
msgstr "角色安全"
#: users/templates/users/_user_bulk_update_modal.html:4
#: users/templates/users/_user_bulk_update_modal.html:4
#, fuzzy
#| msgid "Update user"
msgid "Update User"
msgid "Update User"
msgstr "编辑用户"
msgstr "编辑用户"
#: users/templates/users/_user_bulk_update_modal.html:13
#: users/templates/users/_user_bulk_update_modal.html:13
#, fuzzy
#| msgid "Admin user"
msgid "Admin"
msgid "Admin"
msgstr "管理用户"
msgstr "管理用户"
#: users/templates/users/_user_bulk_update_modal.html:19
#: users/templates/users/_user_bulk_update_modal.html:19
msgid "Groups"
msgid "Groups"
msgstr ""
msgstr "
组
"
#: users/templates/users/_user_import_modal.html:4
#: users/templates/users/_user_import_modal.html:4
#, fuzzy
#| msgid "Create user"
msgid "Import user"
msgid "Import user"
msgstr "
创建用户
"
msgstr "
导入
"
#: users/templates/users/_user_import_modal.html:14
#: users/templates/users/_user_import_modal.html:14
#, fuzzy
#| msgid "User detail"
msgid "Users excel file"
msgid "Users excel file"
msgstr "用户
详情
"
msgstr "用户
excel
"
#: users/templates/users/_user_update_pk_modal.html:4
#: users/templates/users/_user_update_pk_modal.html:4
#, fuzzy
#| msgid "SSH private key"
msgid "Update User SSH Public Key"
msgid "Update User SSH Public Key"
msgstr "ssh密钥"
msgstr "
更新
ssh密钥"
#: users/templates/users/first_login.html:18 users/views/login.py:180
#: users/templates/users/first_login.html:18
#, fuzzy
#: users/templates/users/first_login_done.html:18
#| msgid "Last login"
msgid "First Login"
msgid "First Login"
msgstr "
最后登录
"
msgstr "
首次登陆
"
#: users/templates/users/first_login.html:35
#: users/templates/users/first_login.html:35
#, fuzzy
#| msgid "System"
msgid "Step"
msgid "Step"
msgstr "
系统
"
msgstr "
Step
"
#: users/templates/users/first_login.html:57
#: users/templates/users/first_login.html:57
msgid "
f
irst step"
msgid "
F
irst step"
msgstr ""
msgstr "
第一步
"
#: users/templates/users/first_login.html:58
#: users/templates/users/first_login.html:58
msgid "
p
rev step"
msgid "
P
rev step"
msgstr ""
msgstr "
上一步
"
#: users/templates/users/first_login.html:60
#: users/templates/users/first_login_done.html:30
#, fuzzy
msgid "Welcome to use jumpserver, visit "
#| msgid "Submit"
msgstr "欢迎使用Jumpserver开源跳板机系统"
msgid "submit"
msgstr "提交"
#: users/templates/users/first_login_done.html:31
msgid "Use guide"
msgstr "向导"
#: users/templates/users/first_login_done.html:31
msgid " for more information"
msgstr "获取更多信息"
#: users/templates/users/forgot_password.html:26
#: users/templates/users/forgot_password.html:26
#: users/templates/users/login.html:64
#: users/templates/users/login.html:64
...
@@ -2231,7 +2036,9 @@ msgid "Captcha invalid"
...
@@ -2231,7 +2036,9 @@ msgid "Captcha invalid"
msgstr "验证码错误"
msgstr "验证码错误"
#: users/templates/users/reset_password.html:45
#: users/templates/users/reset_password.html:45
#: users/templates/users/user_detail.html:155 users/utils.py:71
#: users/templates/users/user_detail.html:155
#: users/templates/users/user_detail.html:323
#: users/templates/users/user_profile.html:136 users/utils.py:71
msgid "Reset password"
msgid "Reset password"
msgstr "重置密码"
msgstr "重置密码"
...
@@ -2240,7 +2047,6 @@ msgid "Password again"
...
@@ -2240,7 +2047,6 @@ msgid "Password again"
msgstr "再次输入密码"
msgstr "再次输入密码"
#: users/templates/users/reset_password.html:57
#: users/templates/users/reset_password.html:57
#, fuzzy
msgid "Setting"
msgid "Setting"
msgstr "设置"
msgstr "设置"
...
@@ -2249,7 +2055,7 @@ msgstr "设置"
...
@@ -2249,7 +2055,7 @@ msgstr "设置"
#: users/templates/users/user_granted_asset.html:18
#: users/templates/users/user_granted_asset.html:18
#: users/templates/users/user_group_asset_permission.html:18
#: users/templates/users/user_group_asset_permission.html:18
#: users/templates/users/user_group_granted_asset.html:18
#: users/templates/users/user_group_granted_asset.html:18
#: users/views/user.py:11
5
#: users/views/user.py:11
9
msgid "User detail"
msgid "User detail"
msgstr "用户详情"
msgstr "用户详情"
...
@@ -2259,33 +2065,25 @@ msgstr "用户详情"
...
@@ -2259,33 +2065,25 @@ msgstr "用户详情"
#: users/templates/users/user_group_asset_permission.html:24
#: users/templates/users/user_group_asset_permission.html:24
#: users/templates/users/user_group_detail.html:28
#: users/templates/users/user_group_detail.html:28
#: users/templates/users/user_group_granted_asset.html:24
#: users/templates/users/user_group_granted_asset.html:24
#, fuzzy
#| msgid "Asset type"
msgid "Asset granted"
msgid "Asset granted"
msgstr "
系统类型
"
msgstr "
授权的资产
"
#: users/templates/users/user_asset_permission.html:32
#: users/templates/users/user_asset_permission.html:32
#: users/templates/users/user_group_asset_permission.html:32
#: users/templates/users/user_group_asset_permission.html:32
#, fuzzy
#| msgid "Asset type"
msgid "Asset permission of "
msgid "Asset permission of "
msgstr "
系统类型
"
msgstr "
授权规则
"
#: users/templates/users/user_asset_permission.html:71
#: users/templates/users/user_asset_permission.html:71
#, fuzzy
#| msgid "Create perm"
msgid "Quick create permission for user"
msgid "Quick create permission for user"
msgstr "创建权限"
msgstr "创建权限"
#: users/templates/users/user_asset_permission.html:178
#: users/templates/users/user_asset_permission.html:178
#: users/templates/users/user_group_asset_permission.html:174
#: users/templates/users/user_group_asset_permission.html:174
#, fuzzy
#| msgid "Create account successfully"
msgid "Revoke Successfully!"
msgid "Revoke Successfully!"
msgstr "
创建账户
成功"
msgstr "
回收
成功"
#: users/templates/users/user_create.html:4
#: users/templates/users/user_create.html:4
#: users/templates/users/user_list.html:16 users/views/user.py:
66
#: users/templates/users/user_list.html:16 users/views/user.py:
70
msgid "Create user"
msgid "Create user"
msgstr "创建用户"
msgstr "创建用户"
...
@@ -2294,6 +2092,7 @@ msgid "Reset link will be generated and sent to the user. "
...
@@ -2294,6 +2092,7 @@ msgid "Reset link will be generated and sent to the user. "
msgstr "生成重置密码连接,通过邮件发送给用户"
msgstr "生成重置密码连接,通过邮件发送给用户"
#: users/templates/users/user_detail.html:105
#: users/templates/users/user_detail.html:105
#: users/templates/users/user_profile.html:92
msgid "Last login"
msgid "Last login"
msgstr "最后登录"
msgstr "最后登录"
...
@@ -2303,18 +2102,12 @@ msgstr "重置密钥"
...
@@ -2303,18 +2102,12 @@ msgstr "重置密钥"
#: users/templates/users/user_detail.html:322
#: users/templates/users/user_detail.html:322
msgid "An e-mail has been sent to the user\\'s mailbox."
msgid "An e-mail has been sent to the user\\'s mailbox."
msgstr ""
msgstr "已发送邮件到用户邮箱"
#: users/templates/users/user_detail.html:323
#, fuzzy
#| msgid "Password"
msgid "Password-Reset"
msgstr "密码"
#: users/templates/users/user_detail.html:333
#: users/templates/users/user_detail.html:333
#: users/templates/users/user_detail.html:358
#: users/templates/users/user_detail.html:358
msgid "This will reset the user\\"
msgid "This will reset the user\\"
msgstr ""
msgstr "
重置
"
#: users/templates/users/user_detail.html:347
#: users/templates/users/user_detail.html:347
msgid ""
msgid ""
...
@@ -2323,22 +2116,18 @@ msgid ""
...
@@ -2323,22 +2116,18 @@ msgid ""
msgstr ""
msgstr ""
#: users/templates/users/user_detail.html:348
#: users/templates/users/user_detail.html:348
#, fuzzy
msgid "Reset SSH public key"
#| msgid "SSH private key"
msgstr "重置SSH密钥"
msgid "SSH-Public-Key Reset"
msgstr "ssh密钥"
#: users/templates/users/user_detail.html:375
#: users/templates/users/user_detail.html:375
#: users/templates/users/user_profile.html:1
27
#: users/templates/users/user_profile.html:1
70
msgid "Successfully updated the SSH public key."
msgid "Successfully updated the SSH public key."
msgstr ""
msgstr ""
#: users/templates/users/user_detail.html:376
#: users/templates/users/user_detail.html:376
#: users/templates/users/user_detail.html:380
#: users/templates/users/user_detail.html:380
#: users/templates/users/user_profile.html:128
#: users/templates/users/user_profile.html:171
#: users/templates/users/user_profile.html:133
#: users/templates/users/user_profile.html:176
#, fuzzy
#| msgid "SSH private key"
msgid "User SSH Public Key Update"
msgid "User SSH Public Key Update"
msgstr "ssh密钥"
msgstr "ssh密钥"
...
@@ -2363,55 +2152,47 @@ msgid "Quick create permission for user group"
...
@@ -2363,55 +2152,47 @@ msgid "Quick create permission for user group"
msgstr "创建权限"
msgstr "创建权限"
#: users/templates/users/user_group_create_update.html:30
#: users/templates/users/user_group_create_update.html:30
#, fuzzy
#| msgid "Select assets"
msgid "Select User"
msgid "Select User"
msgstr "选择
资产
"
msgstr "选择
用户
"
#: users/templates/users/user_group_create_update.html:44
#: users/templates/users/user_group_create_update.html:44
msgid "Cancel"
msgid "Cancel"
msgstr ""
msgstr "
取消
"
#: users/templates/users/user_group_create_update.html:45
#: users/templates/users/user_group_create_update.html:45
#, fuzzy
#| msgid "Confirm delete"
msgid "confirm"
msgid "confirm"
msgstr "确认删除"
msgstr "确认删除"
#: users/templates/users/user_group_detail.html:22 users/views/group.py:96
#: users/templates/users/user_group_detail.html:22 users/views/group.py:106
#, fuzzy
msgid "User group detail"
#| msgid "Asset group list"
msgstr "资产组详情"
msgid "User Group Detail"
msgstr "资产组列表"
#: users/templates/users/user_group_detail.html:62
#: users/templates/users/user_group_detail.html:62
#, fuzzy
#| msgid "Created by"
msgid "Create by"
msgid "Create by"
msgstr "创建者"
msgstr "创建者"
#: users/templates/users/user_group_detail.html:89
#: users/templates/users/user_group_detail.html:89
msgid "Add user"
msgid "Add user"
msgstr "
创建
用户"
msgstr "
添加
用户"
#: users/templates/users/user_group_list.html:5
#: users/templates/users/user_group_list.html:5
users/views/group.py:45
msgid "
Add User G
roup"
msgid "
Create user g
roup"
msgstr "创建用户组"
msgstr "创建用户组"
#: users/templates/users/user_group_list.html:13
#: users/templates/users/user_group_list.html:13
msgid "User
Am
ount"
msgid "User
c
ount"
msgstr "用户数量"
msgstr "用户数量"
#: users/templates/users/user_group_list.html:9
5
#: users/templates/users/user_group_list.html:9
6
msgid "UserGroups Deleted."
msgid "UserGroups Deleted."
msgstr "用户组删除"
msgstr "用户组删除"
#: users/templates/users/user_group_list.html:9
6
#: users/templates/users/user_group_list.html:9
7
#: users/templates/users/user_group_list.html:10
1
#: users/templates/users/user_group_list.html:10
2
msgid "UserGroups Delete"
msgid "UserGroups Delete"
msgstr "用户组删除"
msgstr "用户组删除"
#: users/templates/users/user_group_list.html:10
0
#: users/templates/users/user_group_list.html:10
1
msgid "UserGroup Deleting failed."
msgid "UserGroup Deleting failed."
msgstr "用户组删除失败"
msgstr "用户组删除失败"
...
@@ -2423,8 +2204,6 @@ msgstr "激活所选"
...
@@ -2423,8 +2204,6 @@ msgstr "激活所选"
msgid "This will delete the selected users !!!"
msgid "This will delete the selected users !!!"
msgstr ""
msgstr ""
# msgid "Deleted!"
# msgstr "删除"
#: users/templates/users/user_list.html:175
#: users/templates/users/user_list.html:175
msgid "User Deleted."
msgid "User Deleted."
msgstr "已被删除"
msgstr "已被删除"
...
@@ -2446,19 +2225,50 @@ msgstr ""
...
@@ -2446,19 +2225,50 @@ msgstr ""
msgid "User Updated"
msgid "User Updated"
msgstr "更新"
msgstr "更新"
#: users/templates/users/user_profile.html:98
#: users/templates/users/user_password_update.html:43
msgid "Update Public Key"
#: users/templates/users/user_profile.html:71
msgstr "更新公钥"
#: users/templates/users/user_profile_update.html:43
#: users/templates/users/user_pubkey_update.html:43
msgid "Public key"
msgstr "ssh公钥"
#: users/templates/users/user_profile.html:20
msgid "Settings"
msgstr "设置"
#: users/templates/users/user_profile.html:67
msgid "OTP"
msgstr ""
#: users/templates/users/user_profile.html:100
msgid "User groups"
msgstr "用户组"
#: users/templates/users/user_profile.html:114
msgid "Perm assets"
msgstr "资产"
#: users/templates/users/user_profile.html:1
09
#: users/templates/users/user_profile.html:1
44
msgid "
Paste your SSH Public Key here
"
msgid "
Reset public key
"
msgstr "
复制公钥到这里
"
msgstr "
重置SSH密钥
"
#: users/templates/users/user_profile.html:1
31
#: users/templates/users/user_profile.html:1
74
msgid "Failed to update SSH public key."
msgid "Failed to update SSH public key."
msgstr "更新公钥失败"
msgstr "更新密钥失败"
#: users/templates/users/user_pubkey_update.html:51
msgid "Old public key"
msgstr "原来ssh密钥"
#: users/templates/users/user_pubkey_update.html:59
msgid "Fingerprint"
msgstr "指纹"
#: users/templates/users/user_update.html:3 users/views/user.py:102
#: users/templates/users/user_pubkey_update.html:64
msgid "Update public key"
msgstr "更新密钥"
#: users/templates/users/user_update.html:3 users/views/user.py:106
msgid "Update user"
msgid "Update user"
msgstr "编辑用户"
msgstr "编辑用户"
...
@@ -2591,291 +2401,89 @@ msgid ""
...
@@ -2591,291 +2401,89 @@ msgid ""
"\n"
"\n"
" </br>\n"
" </br>\n"
" "
" "
msgstr ""
msgstr "\n"
" 你好 %(name)s:\n"
" </br>\n"
" 您的密钥已被管理员重置,\n"
" 请登录并重新设置您的密钥.\n"
" </br>\n"
" <a href=\"%(login_url)s\">Login direct</a>\n"
"\n"
" </br>\n"
" "
#: users/utils.py:139
#: users/utils.py:139
#, fuzzy
#| msgid "User list"
msgid "User not exist"
msgid "User not exist"
msgstr "用户
列表
"
msgstr "用户
不存在
"
#: users/utils.py:141
#: users/utils.py:141
#, fuzzy
#| msgid "Date expired"
msgid "Disabled or expired"
msgid "Disabled or expired"
msgstr "
失效日期
"
msgstr "
禁用或失效
"
#: users/utils.py:154
#: users/utils.py:154
msgid "Password or SSH public key invalid"
msgid "Password or SSH public key invalid"
msgstr ""
msgstr "
密码或秘钥不合法
"
#: users/views/group.py:3
0
#: users/views/group.py:3
1
msgid "User group list"
msgid "User group list"
msgstr "用户组列表"
msgstr "用户组列表"
#: users/views/group.py:43
#: users/views/group.py:81
msgid "Create user group"
msgid "Update user group"
msgstr "创建用户组"
msgstr "编辑用户组"
#: users/views/group.py:71
#, fuzzy
#| msgid "Update user"
msgid "Update User Group"
msgstr "编辑用户"
#: users/views/login.py:7
4
#: users/views/login.py:7
6
msgid "Logout success"
msgid "Logout success"
msgstr "退出登录成功"
msgstr "退出登录成功"
#: users/views/login.py:7
5
#: users/views/login.py:7
7
msgid "Logout success, return login page"
msgid "Logout success, return login page"
msgstr "退出登录成功,返回到登录页面"
msgstr "退出登录成功,返回到登录页面"
#: users/views/login.py:90
#: users/views/login.py:92
#, fuzzy
#| msgid "Email address invalid, input again"
msgid "Email address invalid, please input again"
msgid "Email address invalid, please input again"
msgstr "邮箱地址错误,重新输入"
msgstr "邮箱地址错误,重新输入"
#: users/views/login.py:10
3
#: users/views/login.py:10
5
msgid "Send reset password message"
msgid "Send reset password message"
msgstr "发送重置密码邮件"
msgstr "发送重置密码邮件"
#: users/views/login.py:10
4
#: users/views/login.py:10
6
msgid "Send reset password mail success, login your mail box and follow it "
msgid "Send reset password mail success, login your mail box and follow it "
msgstr ""
msgstr ""
"发送重置邮件成功, 请登录邮箱查看, 按照提示操作 (如果没收到,请等待3-5分钟)"
"发送重置邮件成功, 请登录邮箱查看, 按照提示操作 (如果没收到,请等待3-5分钟)"
#: users/views/login.py:1
18
#: users/views/login.py:1
20
msgid "Reset password success"
msgid "Reset password success"
msgstr "重置密码成功"
msgstr "重置密码成功"
#: users/views/login.py:1
19
#: users/views/login.py:1
21
msgid "Reset password success, return to login page"
msgid "Reset password success, return to login page"
msgstr "重置密码成功,返回到登录页面"
msgstr "重置密码成功,返回到登录页面"
#: users/views/login.py:13
6 users/views/login.py:149
#: users/views/login.py:13
8 users/views/login.py:151
msgid "Token invalid or expired"
msgid "Token invalid or expired"
msgstr "Token错误或失效"
msgstr "Token错误或失效"
#: users/views/login.py:14
5
#: users/views/login.py:14
7
msgid "Password not same"
msgid "Password not same"
msgstr "密码不一致"
msgstr "密码不一致"
#: users/views/user.py:51
#: users/views/login.py:185
msgid "First login"
msgstr "首次登陆"
#: users/views/user.py:55
msgid "User list"
msgid "User list"
msgstr "用户列表"
msgstr "用户列表"
#: users/views/user.py:6
2
#: users/views/user.py:6
6 users/views/user.py:334
#, fuzzy, python-format
#, fuzzy, python-
brace-
format
#| msgid "Create
user <a href=\"%s\">%s</a> success
."
#| msgid "Create
admin user <a href=\"%s\">%s</a> successfully
."
msgid "Create user <a href=\"
%s\">%s
</a> successfully."
msgid "Create user <a href=\"
{url}\">{name}
</a> successfully."
msgstr "创建用户 <a href=\"%s\">%s</a> 成功"
msgstr "创建
管理
用户 <a href=\"%s\">%s</a> 成功"
#: users/views/user.py:17
1
#: users/views/user.py:17
5
msgid "Invalid file."
msgid "Invalid file."
msgstr ""
msgstr ""
#, fuzzy
#~| msgid "Select assets"
#~ msgid "Select asset tags"
#~ msgstr "选择资产"
#, fuzzy
#~| msgid "System user"
#~ msgid "Select asset system users"
#~ msgstr "系统"
#~ msgid "KEY"
#~ msgstr "KEY"
#~ msgid "VALUE"
#~ msgstr "VALUE"
#~ msgid "status"
#~ msgstr "状态"
#, fuzzy
#~ msgid "Testing"
#~ msgstr "设置"
#~ msgid "Auto update pass/key"
#~ msgstr "自动更新密码/密钥"
#~ msgid "Brand"
#~ msgstr "品牌"
#, fuzzy
#~| msgid "Asset group list"
#~ msgid "Asset login log"
#~ msgstr "资产组列表"
#, fuzzy
#~| msgid "Asset group"
#~ msgid "Asset group perm"
#~ msgstr "资产组"
#, fuzzy
#~| msgid "System user"
#~ msgid "repush system user"
#~ msgstr "系统"
#, fuzzy
#~| msgid "Select assets"
#~ msgid "Select asset user"
#~ msgstr "选择资产"
#~ msgid "Export selected"
#~ msgstr "批量导出"
#, fuzzy
#~| msgid "Operator"
#~ msgid "operation"
#~ msgstr "运营商"
#, fuzzy
#~| msgid "Asset group"
#~ msgid "Asset group num"
#~ msgstr "资产组"
#, fuzzy
#~| msgid "Asset group list"
#~ msgid "Asset Tags list"
#~ msgstr "资产组列表"
#, fuzzy
#~| msgid "Asset group list"
#~ msgid "Asset Tags detail"
#~ msgstr "资产组列表"
#, fuzzy
#~| msgid "Hostname"
#~ msgid "Hosts"
#~ msgstr "主机名"
#, fuzzy
#~| msgid "User list"
#~ msgid "User_Alias"
#~ msgstr "用户列表"
#, fuzzy
#~| msgid "Password"
#~ msgid "Is_NoPassword"
#~ msgstr "密码"
#~ msgid "Label"
#~ msgstr "标签"
#~ msgid "Cron"
#~ msgstr "Cron"
#~ msgid "File"
#~ msgstr "文件"
#~ msgid "File upload"
#~ msgstr "文件上传"
#~ msgid "Settings"
#~ msgstr "设置"
#, fuzzy
#~| msgid "User"
#~ msgid "User "
#~ msgstr "用户"
#, fuzzy
#~| msgid "User group"
#~ msgid "User group "
#~ msgstr "用户组"
#, fuzzy
#~| msgid "Asset"
#~ msgid "Asset "
#~ msgstr "资产"
#, fuzzy
#~| msgid "Asset group"
#~ msgid "Asset group "
#~ msgstr "资产组"
#, fuzzy
#~| msgid "System user"
#~ msgid "System user "
#~ msgstr "系统"
#, fuzzy
#~| msgid "Update user"
#~ msgid "Update ssh key"
#~ msgstr "编辑用户"
#, fuzzy
#~| msgid "Create asset group"
#~ msgid "Granted assets of "
#~ msgstr "创建资产组"
#, fuzzy
#~| msgid "Create asset"
#~ msgid "Created at"
#~ msgstr "创建资产"
#, fuzzy
#~| msgid "Asset group"
#~ msgid "Asset Amount"
#~ msgstr "资产组"
#~ msgid "Begin to generate ssh private key ..."
#~ msgstr "开始生成ssh密钥"
#~ msgid "Finish to generate ssh private key ..."
#~ msgstr "生成ssh密钥成功"
#~ msgid "These is error when generate ssh key."
#~ msgstr "创建密钥失败"
#, fuzzy
#~| msgid "ssh private key"
#~ msgid "Not a valid Excel file."
#~ msgstr "ssh密钥"
#~ msgid "Network"
#~ msgstr "网络"
#, fuzzy
#~| msgid "Asset number"
#~ msgid "Asset users"
#~ msgstr "资产编号"
#, fuzzy
#~| msgid "Created by"
#~ msgid "Create idc"
#~ msgstr "创建者"
#~ msgid "Admin password"
#~ msgstr "管理员密码"
#, fuzzy
#~| msgid "Create user <a href=\"%s\">%s</a> success."
#~ msgid "Update system user <a href=\"%s\">%s</a> successfully."
#~ msgstr "创建用户 <a href=\"%s\">%s</a> 成功"
#, fuzzy
#~| msgid "Create perm"
#~ msgid "Create perm "
#~ msgstr "创建权限"
#~ msgid "Create perm"
#~ msgstr "创建权限"
#~ msgid "User log"
#~ msgstr "登录日志"
#, fuzzy
#~| msgid "Create user <a href=\"%s\">%s</a> success."
#~ msgid "Update admin user <a href=\"%s\">%s</a> successfully."
#~ msgstr "创建用户 <a href=\"%s\">%s</a> 成功"
#~ msgid "Perm"
#~ msgstr "权限"
#~ msgid "Username or password invalid"
#~ msgstr "用户名或密码错误"
apps/ops/models.py
View file @
c11374ae
...
@@ -22,7 +22,7 @@ class Task(models.Model):
...
@@ -22,7 +22,7 @@ class Task(models.Model):
timedelta
=
models
.
FloatField
(
default
=
0.0
,
verbose_name
=
_
(
'Time'
),
null
=
True
)
timedelta
=
models
.
FloatField
(
default
=
0.0
,
verbose_name
=
_
(
'Time'
),
null
=
True
)
is_finished
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
'Is finished'
))
is_finished
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
'Is finished'
))
is_success
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
'Is success'
))
is_success
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
'Is success'
))
assets
=
models
.
TextField
(
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Assets
for
id'
))
# Asset inventory may be change
assets
=
models
.
TextField
(
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Assets id'
))
# Asset inventory may be change
_modules_args
=
models
.
TextField
(
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Task module and args json format'
))
_modules_args
=
models
.
TextField
(
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Task module and args json format'
))
pattern
=
models
.
CharField
(
max_length
=
64
,
default
=
'all'
,
verbose_name
=
_
(
'Task run pattern'
))
pattern
=
models
.
CharField
(
max_length
=
64
,
default
=
'all'
,
verbose_name
=
_
(
'Task run pattern'
))
result
=
models
.
TextField
(
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Task raw result'
))
result
=
models
.
TextField
(
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Task raw result'
))
...
...
apps/ops/templates/ops/task_detail.html
View file @
c11374ae
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
{% endif %}
{% endif %}
</tr>
</tr>
<tr>
<tr>
<td>
{% trans '
Assets
' %}:
</td>
<td>
{% trans '
assets
' %}:
</td>
<td>
<td>
<b>
<b>
{% for asset in object.total_assets %}
{% for asset in object.total_assets %}
...
...
apps/perms/templates/perms/asset_permission_asset.html
View file @
c11374ae
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<form>
<form>
<tr
class=
"no-borders-tr"
>
<tr
class=
"no-borders-tr"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<select
data-placeholder=
"{% trans 'Select asset
' %}"
class=
"select2"
style=
"width: 100%"
multiple=
""
tabindex=
"4"
>
<select
data-placeholder=
"{% trans 'Select asset
s
' %}"
class=
"select2"
style=
"width: 100%"
multiple=
""
tabindex=
"4"
>
{% for asset in asset_remain %}
{% for asset in asset_remain %}
<option
value=
"{{ asset.id }}"
>
{{ asset.hostname }}: {{ asset.ip }}
</option>
<option
value=
"{{ asset.id }}"
>
{{ asset.hostname }}: {{ asset.ip }}
</option>
{% endfor %}
{% endfor %}
...
...
apps/perms/views.py
View file @
c11374ae
...
@@ -80,11 +80,11 @@ class AssetPermissionCreateView(AdminUserRequiredMixin,
...
@@ -80,11 +80,11 @@ class AssetPermissionCreateView(AdminUserRequiredMixin,
return
super
(
AssetPermissionCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
return
super
(
AssetPermissionCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
def
get_success_message
(
self
,
cleaned_data
):
def
get_success_message
(
self
,
cleaned_data
):
url
=
reverse_lazy
(
'perms:asset-permission-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
})
success_message
=
_
(
success_message
=
_
(
'Create asset permission <a href="
%
s">
%
s </a> '
'Create asset permission <a href="{url}"> {name} </a> '
'successfully.'
%
(
reverse_lazy
(
'perms:asset-permission-detail'
,
'successfully.'
.
format
(
url
=
url
,
name
=
self
.
object
.
name
))
kwargs
=
{
'pk'
:
self
.
object
.
pk
}),
self
.
object
.
name
,))
return
success_message
return
success_message
def
form_valid
(
self
,
form
):
def
form_valid
(
self
,
form
):
...
@@ -102,8 +102,9 @@ class AssetPermissionUpdateView(AdminUserRequiredMixin, UpdateView):
...
@@ -102,8 +102,9 @@ class AssetPermissionUpdateView(AdminUserRequiredMixin, UpdateView):
model
=
AssetPermission
model
=
AssetPermission
form_class
=
AssetPermissionForm
form_class
=
AssetPermissionForm
template_name
=
'perms/asset_permission_create_update.html'
template_name
=
'perms/asset_permission_create_update.html'
success_message
=
_
(
'Update asset permission '
success_message
=
_
(
'<a href="
%
s">
%
s </a> successfully.'
)
'Update asset permission <a href="{url}"> {name} </a> successfully.'
)
def
get_context_data
(
self
,
**
kwargs
):
def
get_context_data
(
self
,
**
kwargs
):
context
=
{
context
=
{
...
@@ -113,10 +114,12 @@ class AssetPermissionUpdateView(AdminUserRequiredMixin, UpdateView):
...
@@ -113,10 +114,12 @@ class AssetPermissionUpdateView(AdminUserRequiredMixin, UpdateView):
kwargs
.
update
(
context
)
kwargs
.
update
(
context
)
return
super
(
AssetPermissionUpdateView
,
self
)
.
get_context_data
(
**
kwargs
)
return
super
(
AssetPermissionUpdateView
,
self
)
.
get_context_data
(
**
kwargs
)
def
get_success_url
(
self
):
def
get_success_message
(
self
):
success_url
=
reverse_lazy
(
'perms:asset-permission-detail'
,
url
=
reverse_lazy
(
'perms:asset-permission-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
})
kwargs
=
{
'pk'
:
self
.
object
.
pk
})
return
success_url
return
self
.
success_message
.
format
(
url
=
url
,
name
=
self
.
object
.
name
)
def
form_valid
(
self
,
form
):
def
form_valid
(
self
,
form
):
assets
=
form
.
cleaned_data
[
'assets'
]
assets
=
form
.
cleaned_data
[
'assets'
]
...
...
apps/templates/_base_list.html
View file @
c11374ae
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% load i18n %}
{% block custom_head_css_js %}
{% block custom_head_css_js %}
<link
href=
"{% static "
css
/
plugins
/
dataTables
/
datatables
.
min
.
css
"
%}"
rel=
"stylesheet"
>
<link
href=
"{% static "
css
/
plugins
/
dataTables
/
datatables
.
min
.
css
"
%}"
rel=
"stylesheet"
>
<link
href=
"{% static "
css
/
plugins
/
awesome-bootstrap-checkbox
/
awesome-bootstrap-checkbox
.
css
"
%}"
rel=
"stylesheet"
>
<link
href=
"{% static "
css
/
plugins
/
awesome-bootstrap-checkbox
/
awesome-bootstrap-checkbox
.
css
"
%}"
rel=
"stylesheet"
>
...
@@ -40,17 +41,17 @@
...
@@ -40,17 +41,17 @@
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<div
class=
"input-group-btn"
>
<div
class=
"input-group-btn"
>
<button
id=
'search_btn'
type=
"submit"
class=
"btn btn-sm btn-primary"
>
<button
id=
'search_btn'
type=
"submit"
class=
"btn btn-sm btn-primary"
>
搜索
{% trans 'Search' %}
</button>
</button>
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
</form>
</form>
{% endblock %}
{% endblock %}
{% block tags_list %}{% endblock %
}
{# {% block tags_list %}{% endblock %}#
}
</div>
</div>
{% block table_container %}
{% block table_container %}
<table
class=
"table table-striped table-bordered table-hover
"
id=
"editable"
>
<table
class=
"table table-striped table-bordered table-hover"
id=
"editable"
>
<thead>
<thead>
<tr>
<tr>
{% block table_head %} {% endblock %}
{% block table_head %} {% endblock %}
...
...
apps/templates/_nav.html
View file @
c11374ae
{% load i18n %}
{% load i18n %}
<li
id=
"index"
>
<li
id=
"index"
>
<a
href=
"{% url 'index' %}"
>
<a
href=
"{% url 'index' %}"
>
<i
class=
"fa fa-dashboard"
></i>
<span
class=
"nav-label"
>
{% trans '
Home
' %}
</span><span
class=
"label label-info pull-right"
></span>
<i
class=
"fa fa-dashboard"
></i>
<span
class=
"nav-label"
>
{% trans '
Dashboard
' %}
</span><span
class=
"label label-info pull-right"
></span>
</a>
</a>
</li>
</li>
<li
id=
"users"
>
<li
id=
"users"
>
...
...
apps/templates/base.html
View file @
c11374ae
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
<body>
<body>
<div
id=
"wrapper"
>
<div
id=
"wrapper"
>
{% include '_left_side_bar.html' %}
{% include '_left_side_bar.html' %}
<div
id=
"page-wrapper"
class=
"gray-bg"
>
<div
id=
"page-wrapper"
class=
"gray-bg"
>
{% include '_header_bar.html' %}
{% include '_header_bar.html' %}
...
...
apps/users/forms.py
View file @
c11374ae
...
@@ -131,14 +131,6 @@ class UserGroupForm(forms.ModelForm):
...
@@ -131,14 +131,6 @@ class UserGroupForm(forms.ModelForm):
}
}
# class UserInfoForm(forms.Form):
# name = forms.CharField(max_length=20, label=_('name'))
# avatar = forms.ImageField(label=_('avatar'), required=False)
# wechat = forms.CharField(max_length=30, label=_('wechat'), required=False)
# phone = forms.CharField(max_length=20, label=_('phone'), required=False)
# enable_otp = forms.BooleanField(required=False, label=_('enable otp'))
class
UserPrivateAssetPermissionForm
(
forms
.
ModelForm
):
class
UserPrivateAssetPermissionForm
(
forms
.
ModelForm
):
def
save
(
self
,
commit
=
True
):
def
save
(
self
,
commit
=
True
):
self
.
instance
=
super
(
UserPrivateAssetPermissionForm
,
self
)
\
self
.
instance
=
super
(
UserPrivateAssetPermissionForm
,
self
)
\
...
...
apps/users/models/group.py
View file @
c11374ae
...
@@ -17,7 +17,8 @@ __all__ = ['UserGroup']
...
@@ -17,7 +17,8 @@ __all__ = ['UserGroup']
class
UserGroup
(
NoDeleteModelMixin
):
class
UserGroup
(
NoDeleteModelMixin
):
name
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
_
(
'Name'
))
name
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
_
(
'Name'
))
comment
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
comment
=
models
.
TextField
(
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
null
=
True
)
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
null
=
True
,
verbose_name
=
_
(
'Date created'
))
created_by
=
models
.
CharField
(
max_length
=
100
)
created_by
=
models
.
CharField
(
max_length
=
100
)
def
__unicode__
(
self
):
def
__unicode__
(
self
):
...
...
apps/users/templates/users/_user_bulk_update_modal.html
View file @
c11374ae
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"groups"
class=
"col-sm-2 control-label"
>
{% trans 'Groups' %}
</label>
<label
for=
"groups"
class=
"col-sm-2 control-label"
>
{% trans 'Groups' %}
</label>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<div
class=
"col-sm-9"
id=
"select2-container"
>
<select
name=
"groups"
id=
"select2_groups"
data-placeholder=
"{% trans 'Select
Group
' %}"
class=
"select2 form-control m-b"
multiple
>
<select
name=
"groups"
id=
"select2_groups"
data-placeholder=
"{% trans 'Select
groups
' %}"
class=
"select2 form-control m-b"
multiple
>
{% for group in groups %}
{% for group in groups %}
<option
value=
"{{ group.id }}"
>
{{ group.name }}
</option>
<option
value=
"{{ group.id }}"
>
{{ group.name }}
</option>
{% endfor %}
{% endfor %}
...
...
apps/users/templates/users/user_detail.html
View file @
c11374ae
...
@@ -268,7 +268,7 @@ $(document).ready(function() {
...
@@ -268,7 +268,7 @@ $(document).ready(function() {
var
body
=
{
var
body
=
{
'is_active'
:
checked
'is_active'
:
checked
};
};
var
success
=
'{% trans "Update
S
uccessfully!" %}'
;
var
success
=
'{% trans "Update
s
uccessfully!" %}'
;
APIUpdateAttr
({
APIUpdateAttr
({
url
:
the_url
,
url
:
the_url
,
body
:
JSON
.
stringify
(
body
),
body
:
JSON
.
stringify
(
body
),
...
@@ -281,7 +281,7 @@ $(document).ready(function() {
...
@@ -281,7 +281,7 @@ $(document).ready(function() {
var
body
=
{
var
body
=
{
'enable_otp'
:
checked
'enable_otp'
:
checked
};
};
var
success
=
'{% trans "Update
S
uccessfully!" %}'
;
var
success
=
'{% trans "Update
s
uccessfully!" %}'
;
APIUpdateAttr
({
APIUpdateAttr
({
url
:
the_url
,
url
:
the_url
,
body
:
JSON
.
stringify
(
body
),
body
:
JSON
.
stringify
(
body
),
...
@@ -320,7 +320,7 @@ $(document).ready(function() {
...
@@ -320,7 +320,7 @@ $(document).ready(function() {
var
body
=
{};
var
body
=
{};
var
success
=
function
()
{
var
success
=
function
()
{
var
msg
=
"{% trans "
An
e
-
mail
has
been
sent
to
the
user
\
's mailbox." %}";
var
msg
=
"{% trans "
An
e
-
mail
has
been
sent
to
the
user
\
's mailbox." %}";
swal("{% trans '
Password
-
Reset
' %}", msg, "success");
swal("{% trans '
Reset
password
' %}", msg, "success");
};
};
APIUpdateAttr({
APIUpdateAttr({
url: the_url,
url: the_url,
...
@@ -330,7 +330,7 @@ $(document).ready(function() {
...
@@ -330,7 +330,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'
s
password
.
A
password
-
reset
email
will
be
sent
to
the
user
\
's mailbox."
%}",
type: "warning",
type: "warning",
showCancelButton: true,
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonColor: "#DD6B55",
...
@@ -345,7 +345,7 @@ $(document).ready(function() {
...
@@ -345,7 +345,7 @@ $(document).ready(function() {
var body = {};
var body = {};
var success = function() {
var success = function() {
var msg = "{% trans '
The
reset
-
ssh
-
public
-
key
E
-
mail
has
been
sent
successfully
.
Please
inform
the
user
to
update
his
new
ssh
public
key
.
' %}";
var msg = "{% trans '
The
reset
-
ssh
-
public
-
key
E
-
mail
has
been
sent
successfully
.
Please
inform
the
user
to
update
his
new
ssh
public
key
.
' %}";
swal("
{
%
trans
'
SSH-Public-Key Reset
'
%
}
", msg, "
success
");
swal("{% trans '
Reset
SSH
public
key
' %}", msg, "success");
};
};
APIUpdateAttr({
APIUpdateAttr({
url: the_url,
url: the_url,
...
...
apps/users/templates/users/user_group_create_update.html
View file @
c11374ae
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<button
class=
"btn btn-white"
type=
"reset"
>
{% trans 'Cancel' %}
</button>
<button
class=
"btn btn-white"
type=
"reset"
>
{% trans 'Cancel' %}
</button>
<button
id=
"submit_button"
class=
"btn btn-primary"
type=
"submit"
>
{% trans '
c
onfirm' %}
</button>
<button
id=
"submit_button"
class=
"btn btn-primary"
type=
"submit"
>
{% trans '
C
onfirm' %}
</button>
</div>
</div>
</div>
</div>
</form>
</form>
...
...
apps/users/templates/users/user_group_detail.html
View file @
c11374ae
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<div
class=
"panel-options"
>
<div
class=
"panel-options"
>
<ul
class=
"nav nav-tabs"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
>
<li
class=
"active"
>
<a
href=
"{% url 'users:user-group-detail' pk=user_group.id %}"
class=
"text-center"
><i
class=
"fa fa-laptop"
></i>
{% trans 'User
Group D
etail' %}
</a>
<a
href=
"{% url 'users:user-group-detail' pk=user_group.id %}"
class=
"text-center"
><i
class=
"fa fa-laptop"
></i>
{% trans 'User
group d
etail' %}
</a>
</li>
</li>
<li>
<li>
<a
href=
"{% url 'users:user-group-asset-permission' pk=user_group.id %}"
class=
"text-center"
><i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'Asset permission' %}
</a>
<a
href=
"{% url 'users:user-group-asset-permission' pk=user_group.id %}"
class=
"text-center"
><i
class=
"fa fa-bar-chart-o"
></i>
{% trans 'Asset permission' %}
</a>
...
...
apps/users/templates/users/user_group_list.html
View file @
c11374ae
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
{% load i18n static %}
{% load i18n static %}
{% block table_search %}{% endblock %}
{% block table_search %}{% endblock %}
{% block table_container %}
{% block table_container %}
<div
class=
"pull-left m-r-5"
><a
href=
"{% url 'users:user-group-create' %}"
class=
"btn btn-sm btn-primary "
>
{% trans "
Add User G
roup" %}
</a></div>
<div
class=
"pull-left m-r-5"
><a
href=
"{% url 'users:user-group-create' %}"
class=
"btn btn-sm btn-primary "
>
{% trans "
Create user g
roup" %}
</a></div>
<table
class=
"table table-striped table-bordered table-hover "
id=
"group_list_table"
>
<table
class=
"table table-striped table-bordered table-hover "
id=
"group_list_table"
>
<thead>
<thead>
<tr>
<tr>
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<input
id=
""
type=
"checkbox"
class=
"ipt_check_all"
>
<input
id=
""
type=
"checkbox"
class=
"ipt_check_all"
>
</th>
</th>
<th
class=
"text-center"
>
{% trans 'Name' %}
</th>
<th
class=
"text-center"
>
{% trans 'Name' %}
</th>
<th
class=
"text-center"
>
{% trans 'User
Am
ount' %}
</th>
<th
class=
"text-center"
>
{% trans 'User
c
ount' %}
</th>
<th
class=
"text-center"
>
{% trans 'Comment' %}
</th>
<th
class=
"text-center"
>
{% trans 'Comment' %}
</th>
<th
class=
"text-center"
>
{% trans 'Action' %}
</th>
<th
class=
"text-center"
>
{% trans 'Action' %}
</th>
</tr>
</tr>
...
@@ -61,6 +61,7 @@ $(document).ready(function() {
...
@@ -61,6 +61,7 @@ $(document).ready(function() {
ajax_url
:
'{% url "api-users:user-group-list" %}'
,
ajax_url
:
'{% url "api-users:user-group-list" %}'
,
columns
:
[{
data
:
function
(){
return
""
}},
{
data
:
"name"
},
{
data
:
"user_amount"
},
columns
:
[{
data
:
function
(){
return
""
}},
{
data
:
"name"
},
{
data
:
"user_amount"
},
{
data
:
"comment"
},
{
data
:
"id"
}],
{
data
:
"comment"
},
{
data
:
"id"
}],
order
:
[
4
,
'asc'
],
op_html
:
$
(
'#actions'
).
html
()
op_html
:
$
(
'#actions'
).
html
()
};
};
jumpserver
.
initDataTable
(
options
);
jumpserver
.
initDataTable
(
options
);
...
...
apps/users/templates/users/user_profile.html
View file @
c11374ae
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
{% trans 'Reset public key' %}:
</td>
<td>
{% trans 'Reset
SSH
public key' %}:
</td>
<td>
<td>
<span
class=
"pull-right"
>
<span
class=
"pull-right"
>
<a
type=
"button"
class=
"btn btn-primary btn-xs"
style=
"width: 54px"
href=
"{% url 'users:user-pubkey-update' %}"
>
{% trans 'Reset' %}
</a>
<a
type=
"button"
class=
"btn btn-primary btn-xs"
style=
"width: 54px"
href=
"{% url 'users:user-pubkey-update' %}"
>
{% trans 'Reset' %}
</a>
...
...
apps/users/views/group.py
View file @
c11374ae
...
@@ -9,6 +9,7 @@ from django.views.generic import ListView
...
@@ -9,6 +9,7 @@ from django.views.generic import ListView
from
django.views.generic.base
import
TemplateView
from
django.views.generic.base
import
TemplateView
from
django.views.generic.edit
import
CreateView
,
UpdateView
,
FormMixin
from
django.views.generic.edit
import
CreateView
,
UpdateView
,
FormMixin
from
django.views.generic.detail
import
DetailView
,
SingleObjectMixin
from
django.views.generic.detail
import
DetailView
,
SingleObjectMixin
from
django.contrib.messages.views
import
SuccessMessageMixin
from
common.utils
import
get_logger
from
common.utils
import
get_logger
from
perms.models
import
AssetPermission
from
perms.models
import
AssetPermission
...
@@ -31,11 +32,12 @@ class UserGroupListView(AdminUserRequiredMixin, TemplateView):
...
@@ -31,11 +32,12 @@ class UserGroupListView(AdminUserRequiredMixin, TemplateView):
return
context
return
context
class
UserGroupCreateView
(
AdminUserRequiredMixin
,
CreateView
):
class
UserGroupCreateView
(
AdminUserRequiredMixin
,
SuccessMessageMixin
,
CreateView
):
model
=
UserGroup
model
=
UserGroup
form_class
=
forms
.
UserGroupForm
form_class
=
forms
.
UserGroupForm
template_name
=
'users/user_group_create_update.html'
template_name
=
'users/user_group_create_update.html'
success_url
=
reverse_lazy
(
'users:user-group-list'
)
success_url
=
reverse_lazy
(
'users:user-group-list'
)
success_message
=
'<a href={url}> {name} </a> was created successfully'
def
get_context_data
(
self
,
**
kwargs
):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
UserGroupCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
context
=
super
(
UserGroupCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
...
@@ -54,6 +56,14 @@ class UserGroupCreateView(AdminUserRequiredMixin, CreateView):
...
@@ -54,6 +56,14 @@ class UserGroupCreateView(AdminUserRequiredMixin, CreateView):
user_group
.
save
()
user_group
.
save
()
return
super
(
UserGroupCreateView
,
self
)
.
form_valid
(
form
)
return
super
(
UserGroupCreateView
,
self
)
.
form_valid
(
form
)
def
get_success_message
(
self
,
cleaned_data
):
url
=
reverse_lazy
(
'users:user-group-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
id
}
)
return
self
.
success_message
.
format
(
url
=
url
,
name
=
self
.
object
.
name
)
class
UserGroupUpdateView
(
AdminUserRequiredMixin
,
UpdateView
):
class
UserGroupUpdateView
(
AdminUserRequiredMixin
,
UpdateView
):
model
=
UserGroup
model
=
UserGroup
...
@@ -68,7 +78,7 @@ class UserGroupUpdateView(AdminUserRequiredMixin, UpdateView):
...
@@ -68,7 +78,7 @@ class UserGroupUpdateView(AdminUserRequiredMixin, UpdateView):
group_users
=
[
user
.
id
for
user
in
self
.
object
.
users
.
all
()]
group_users
=
[
user
.
id
for
user
in
self
.
object
.
users
.
all
()]
context
.
update
({
context
.
update
({
'app'
:
_
(
'Users'
),
'app'
:
_
(
'Users'
),
'action'
:
_
(
'Update
User G
roup'
),
'action'
:
_
(
'Update
user g
roup'
),
'users'
:
users
,
'users'
:
users
,
'group_users'
:
group_users
'group_users'
:
group_users
})
})
...
...
apps/users/views/user.py
View file @
c11374ae
...
@@ -63,7 +63,7 @@ class UserCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateView):
...
@@ -63,7 +63,7 @@ class UserCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateView):
form_class
=
forms
.
UserCreateUpdateForm
form_class
=
forms
.
UserCreateUpdateForm
template_name
=
'users/user_create.html'
template_name
=
'users/user_create.html'
success_url
=
reverse_lazy
(
'users:user-list'
)
success_url
=
reverse_lazy
(
'users:user-list'
)
success_message
=
_
(
'Create user <a href="
%
s">
%
s
</a> successfully.'
)
success_message
=
_
(
'Create user <a href="
{url}">{name}
</a> successfully.'
)
def
get_context_data
(
self
,
**
kwargs
):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
UserCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
context
=
super
(
UserCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
...
@@ -78,9 +78,9 @@ class UserCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateView):
...
@@ -78,9 +78,9 @@ class UserCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateView):
return
super
(
UserCreateView
,
self
)
.
form_valid
(
form
)
return
super
(
UserCreateView
,
self
)
.
form_valid
(
form
)
def
get_success_message
(
self
,
cleaned_data
):
def
get_success_message
(
self
,
cleaned_data
):
return
self
.
success_message
%
(
url
=
reverse_lazy
(
'users:user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
})
reverse_lazy
(
'users:user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
}),
return
self
.
success_message
.
format
(
self
.
object
.
name
,
url
=
url
,
name
=
self
.
object
.
name
)
)
...
@@ -331,15 +331,15 @@ class UserProfileUpdateView(LoginRequiredMixin, UpdateView):
...
@@ -331,15 +331,15 @@ class UserProfileUpdateView(LoginRequiredMixin, UpdateView):
model
=
User
model
=
User
form_class
=
forms
.
UserProfileForm
form_class
=
forms
.
UserProfileForm
success_url
=
reverse_lazy
(
'users:user-profile'
)
success_url
=
reverse_lazy
(
'users:user-profile'
)
success_message
=
_
(
'Create user <a href="
%
s">
%
s
</a> successfully.'
)
success_message
=
_
(
'Create user <a href="
{url}">{name}
</a> successfully.'
)
def
get_object
(
self
,
queryset
=
None
):
def
get_object
(
self
,
queryset
=
None
):
return
self
.
request
.
user
return
self
.
request
.
user
def
get_success_message
(
self
,
cleaned_data
):
def
get_success_message
(
self
,
cleaned_data
):
return
self
.
success_message
%
(
url
=
reverse_lazy
(
'users:user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
})
reverse_lazy
(
'users:user-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
}),
return
self
.
success_message
.
format
(
self
.
object
.
name
,
url
=
url
,
name
=
self
.
object
.
name
)
)
def
get_context_data
(
self
,
**
kwargs
):
def
get_context_data
(
self
,
**
kwargs
):
...
...
requirements/deb_requirements.txt
View file @
c11374ae
ibtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
\ No newline at end of file
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