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
15179d24
Commit
15179d24
authored
Mar 22, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改批量命令的翻译
parent
9aae1069
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
views.py
apps/audits/views.py
+5
-5
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
command_execution_list.html
apps/ops/templates/ops/command_execution_list.html
+3
-2
_nav.html
apps/templates/_nav.html
+2
-2
No files found.
apps/audits/views.py
View file @
15179d24
...
...
@@ -236,17 +236,17 @@ class CommandExecutionListView(UserCommandExecutionListView):
return
users
def
get_context_data
(
self
,
**
kwargs
):
context
=
{
context
=
super
()
.
get_context_data
(
**
kwargs
)
context
.
update
({
'app'
:
_
(
'Audits'
),
'action'
:
_
(
'Command execution l
ist
'
),
'action'
:
_
(
'Command execution l
og
'
),
'date_from'
:
self
.
date_from
,
'date_to'
:
self
.
date_to
,
'user_list'
:
self
.
get_user_list
(),
'keyword'
:
self
.
keyword
,
'user_id'
:
self
.
user_id
,
}
kwargs
.
update
(
context
)
return
super
()
.
get_context_data
(
**
kwargs
)
})
return
super
()
.
get_context_data
(
**
context
)
@method_decorator
(
csrf_exempt
,
name
=
'dispatch'
)
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
15179d24
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
15179d24
This diff is collapsed.
Click to expand it.
apps/ops/templates/ops/command_execution_list.html
View file @
15179d24
...
...
@@ -9,6 +9,7 @@
<link
href=
"{% static 'css/plugins/select2/select2.min.css' %}"
rel=
"stylesheet"
>
<script
src=
"{% static 'js/plugins/select2/select2.full.min.js' %}"
></script>
<style>
#search_btn
{
margin-bottom
:
0
;
}
...
...
@@ -19,7 +20,7 @@
{% endblock %}
{% block table_search %}
<form
id=
"search_form"
method=
"get"
action=
""
class=
"pull-right form-inline"
>
<form
id=
"search_form"
method=
"get"
action=
""
class=
"pull-right form-inline"
style=
"padding-bottom: 5px"
>
<div
class=
"form-group"
id=
"date"
>
<div
class=
"input-daterange input-group"
id=
"datepicker"
>
<span
class=
"input-group-addon"
><i
class=
"fa fa-calendar"
></i></span>
...
...
@@ -67,7 +68,7 @@
<tbody>
{% for object in object_list %}
<tr
class=
"gradeX"
>
<td>
{{ forloop.counter }}
</td>
<td
class=
"text-center"
>
{{ forloop.counter }}
</td>
<td
class=
"text-center hosts"
value=
"{{ object.get_hosts_names }}"
></td>
<td
class=
"text-center"
>
{{ object.user.name }}
</td>
<td
class=
"text-center"
>
{{ object.command| truncatechars:16 }}
</td>
...
...
apps/templates/_nav.html
View file @
15179d24
...
...
@@ -64,7 +64,7 @@
</a>
<ul
class=
"nav nav-second-level"
>
<li
id=
"task"
><a
href=
"{% url 'ops:task-list' %}"
>
{% trans 'Task list' %}
</a></li>
<li
id=
"command-execution"
><a
href=
"{% url 'ops:command-execution-start' %}"
>
{% trans '
Command execution
' %}
</a></li>
<li
id=
"command-execution"
><a
href=
"{% url 'ops:command-execution-start' %}"
>
{% trans '
Batch command
' %}
</a></li>
</ul>
</li>
<li
id=
"audits"
>
...
...
@@ -76,7 +76,7 @@
<li
id=
"ftp-log"
><a
href=
"{% url 'audits:ftp-log-list' %}"
>
{% trans 'FTP log' %}
</a></li>
<li
id=
"operate-log"
><a
href=
"{% url 'audits:operate-log-list' %}"
>
{% trans 'Operate log' %}
</a></li>
<li
id=
"password-change-log"
><a
href=
"{% url 'audits:password-change-log-list' %}"
>
{% trans 'Password change log' %}
</a></li>
<li
id=
"command-execution-log"
><a
href=
"{% url 'audits:command-execution-log-list' %}"
>
{% trans '
Command execution
' %}
</a></li>
<li
id=
"command-execution-log"
><a
href=
"{% url 'audits:command-execution-log-list' %}"
>
{% trans '
Batch command
' %}
</a></li>
</ul>
</li>
{% if XPACK_PLUGINS %}
...
...
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