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
6cee6269
Commit
6cee6269
authored
Dec 15, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Feature] 翻译,并增加设置导航
parent
11fa3e08
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
task_detail.html
apps/ops/templates/ops/task_detail.html
+2
-2
_nav.html
apps/templates/_nav.html
+14
-14
models.py
apps/terminal/models.py
+4
-4
No files found.
apps/locale/zh/LC_MESSAGES/django.mo
View file @
6cee6269
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
6cee6269
This diff is collapsed.
Click to expand it.
apps/ops/templates/ops/task_detail.html
View file @
6cee6269
...
...
@@ -65,7 +65,7 @@
<td><b>
{{ object.adhoc.all |length }}
</b></td>
</tr>
<tr>
<td>
{% trans 'Last version' %}
</td>
<td>
{% trans 'La
te
st version' %}
</td>
<td><b>
{{ object.get_latest_adhoc.short_id }}
</b></td>
</tr>
<tr>
...
...
@@ -85,7 +85,7 @@
<td><b>
{{ object.get_latest_history.is_success|yesno:"Yes,No,Unkown" }}
</b></td>
</tr>
<tr>
<td>
{% trans 'Conents' %}:
</td>
<td>
{% trans 'Con
t
ents' %}:
</td>
<td>
<b>
{% for task in object.get_latest_adhoc.tasks %}
...
...
apps/templates/_nav.html
View file @
6cee6269
...
...
@@ -35,24 +35,24 @@
</ul>
</li>
<li
id=
"
terminal
"
>
<li
id=
"
ops
"
>
<a>
<i
class=
"fa fa-
rocket"
></i>
<span
class=
"nav-label"
>
{% trans 'Terminal
' %}
</span><span
class=
"fa arrow"
></span>
<i
class=
"fa fa-
coffee"
></i>
<span
class=
"nav-label"
>
{% trans 'Job Center
' %}
</span><span
class=
"fa arrow"
></span>
</a>
<ul
class=
"nav nav-second-level"
>
<li
id=
"terminal"
><a
href=
"{% url 'terminal:terminal-list' %}"
>
{% trans 'Terminal' %}
</a></li>
<li
id=
"session-online"
><a
href=
"{% url 'terminal:session-online-list' %}"
>
{% trans 'Session online' %}
</a></li>
<li
id=
"session-offline"
><a
href=
"{% url 'terminal:session-offline-list' %}"
>
{% trans 'Session offline' %}
</a></li>
<li
id=
"command"
><a
href=
"{% url 'terminal:command-list' %}"
>
{% trans 'Command' %}
</a></li>
<li
id=
"task"
><a
href=
"{% url 'ops:task-list' %}"
>
{% trans 'Tasks' %}
</a></li>
</ul>
</li>
<li
id=
"
ops
"
>
<li
id=
"
terminal
"
>
<a>
<i
class=
"fa fa-
coffee"
></i>
<span
class=
"nav-label"
>
{% trans 'Job Center
' %}
</span><span
class=
"fa arrow"
></span>
<i
class=
"fa fa-
rocket"
></i>
<span
class=
"nav-label"
>
{% trans 'Terminal
' %}
</span><span
class=
"fa arrow"
></span>
</a>
<ul
class=
"nav nav-second-level"
>
<li
id=
"task"
><a
href=
"{% url 'ops:task-list' %}"
>
{% trans 'Tasks' %}
</a></li>
<li
id=
"terminal"
><a
href=
"{% url 'terminal:terminal-list' %}"
>
{% trans 'Terminal' %}
</a></li>
<li
id=
"session-online"
><a
href=
"{% url 'terminal:session-online-list' %}"
>
{% trans 'Session online' %}
</a></li>
<li
id=
"session-offline"
><a
href=
"{% url 'terminal:session-offline-list' %}"
>
{% trans 'Session offline' %}
</a></li>
<li
id=
"command"
><a
href=
"{% url 'terminal:command-list' %}"
>
{% trans 'Command' %}
</a></li>
</ul>
</li>
...
...
@@ -65,11 +65,11 @@
{#
<li
id=
"download"
><a
href=
""
>
{% trans 'File download' %}
</a></li>
#}
{#
</ul>
#}
{#
</li>
#}
{#
<li
id=
""
>
#}
{#
<a
href=
""
>
#}
{#
<i
class=
"fa fa-gears"
></i>
<span
class=
"nav-label"
>
{% trans 'Settings' %}
</span><span
class=
"label label-info pull-right"
></span>
#}
{#
</a>
#}
{#
</li>
#}
<li
id=
""
>
<a
href=
""
>
<i
class=
"fa fa-gears"
></i>
<span
class=
"nav-label"
>
{% trans 'Settings' %}
</span><span
class=
"label label-info pull-right"
></span>
</a>
</li>
<li
class=
"special_link"
>
<a
href=
"http://www.jumpserver.org"
target=
"_blank"
><i
class=
"fa fa-database"
></i>
<span
class=
"nav-label"
>
{% trans 'Visit us' %}
</span>
...
...
apps/terminal/models.py
View file @
6cee6269
...
...
@@ -89,14 +89,14 @@ class Session(models.Model):
id
=
models
.
UUIDField
(
default
=
uuid
.
uuid4
,
primary_key
=
True
)
user
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
_
(
"User"
))
asset
=
models
.
CharField
(
max_length
=
1024
,
verbose_name
=
_
(
"Asset"
))
system_user
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
_
(
"System
U
ser"
))
system_user
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
_
(
"System
u
ser"
))
login_from
=
models
.
CharField
(
max_length
=
2
,
choices
=
LOGIN_FROM_CHOICES
,
default
=
"ST"
)
is_finished
=
models
.
BooleanField
(
default
=
False
)
has_replay
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
"Replay"
))
has_command
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
"Command"
))
terminal
=
models
.
ForeignKey
(
Terminal
,
null
=
True
,
on_delete
=
models
.
CASCADE
)
date_start
=
models
.
DateTimeField
(
verbose_name
=
_
(
"Date
S
tart"
))
date_end
=
models
.
DateTimeField
(
verbose_name
=
_
(
"Date
E
nd"
),
null
=
True
)
date_start
=
models
.
DateTimeField
(
verbose_name
=
_
(
"Date
s
tart"
))
date_end
=
models
.
DateTimeField
(
verbose_name
=
_
(
"Date
e
nd"
),
null
=
True
)
class
Meta
:
db_table
=
"terminal_session"
...
...
@@ -113,7 +113,7 @@ class Task(models.Model):
id
=
models
.
UUIDField
(
default
=
uuid
.
uuid4
,
primary_key
=
True
)
name
=
models
.
CharField
(
max_length
=
128
,
choices
=
NAME_CHOICES
,
verbose_name
=
_
(
"Name"
))
args
=
models
.
CharField
(
max_length
=
1024
,
verbose_name
=
_
(
"
Playbook
Args"
))
args
=
models
.
CharField
(
max_length
=
1024
,
verbose_name
=
_
(
"Args"
))
terminal
=
models
.
ForeignKey
(
Terminal
,
null
=
True
,
on_delete
=
models
.
CASCADE
)
is_finished
=
models
.
BooleanField
(
default
=
False
)
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
)
...
...
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