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
da7cc102
Commit
da7cc102
authored
Dec 17, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix null bug
parent
ea29305f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
connect.py
connect.py
+3
-3
models.py
jperm/models.py
+0
-0
asset_add.html
templates/jasset/asset_add.html
+1
-1
log_offline.html
templates/jlog/log_offline.html
+2
-2
setting.html
templates/setting.html
+1
-1
No files found.
connect.py
View file @
da7cc102
...
@@ -579,7 +579,7 @@ class Nav(object):
...
@@ -579,7 +579,7 @@ class Nav(object):
for
asset
in
assets
:
for
asset
in
assets
:
print
'
%
s'
%
asset
.
hostname
print
'
%
s'
%
asset
.
hostname
print
print
print
"请输入主机名
、IP
或ansile支持的pattern, 多个主机:分隔, q退出"
print
"请输入主机名或ansile支持的pattern, 多个主机:分隔, q退出"
pattern
=
raw_input
(
"
\033
[1;32mPattern>:
\033
[0m "
)
.
strip
()
pattern
=
raw_input
(
"
\033
[1;32mPattern>:
\033
[0m "
)
.
strip
()
if
pattern
==
'q'
:
if
pattern
==
'q'
:
break
break
...
@@ -621,7 +621,7 @@ class Nav(object):
...
@@ -621,7 +621,7 @@ class Nav(object):
self
.
user_perm
=
get_group_user_perm
(
self
.
user
)
self
.
user_perm
=
get_group_user_perm
(
self
.
user
)
try
:
try
:
print
"进入批量上传模式"
print
"进入批量上传模式"
print
"请输入主机名
、IP
或ansile支持的pattern, 多个主机:分隔 q退出"
print
"请输入主机名或ansile支持的pattern, 多个主机:分隔 q退出"
pattern
=
raw_input
(
"
\033
[1;32mPattern>:
\033
[0m "
)
.
strip
()
pattern
=
raw_input
(
"
\033
[1;32mPattern>:
\033
[0m "
)
.
strip
()
if
pattern
==
'q'
:
if
pattern
==
'q'
:
break
break
...
@@ -674,7 +674,7 @@ class Nav(object):
...
@@ -674,7 +674,7 @@ class Nav(object):
self
.
user_perm
=
get_group_user_perm
(
self
.
user
)
self
.
user_perm
=
get_group_user_perm
(
self
.
user
)
try
:
try
:
print
"进入批量下载模式"
print
"进入批量下载模式"
print
"请输入主机名
、IP
或ansile支持的pattern, 多个主机:分隔,q退出"
print
"请输入主机名或ansile支持的pattern, 多个主机:分隔,q退出"
pattern
=
raw_input
(
"
\033
[1;32mPattern>:
\033
[0m "
)
.
strip
()
pattern
=
raw_input
(
"
\033
[1;32mPattern>:
\033
[0m "
)
.
strip
()
if
pattern
==
'q'
:
if
pattern
==
'q'
:
break
break
...
...
jperm/models.py
View file @
da7cc102
templates/jasset/asset_add.html
View file @
da7cc102
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<p
class=
"col-sm-offset-2"
>
Tips: 管理
用户为root或用户拥有NOPASSWD:ALL sudo权限的
用户
</p>
<p
class=
"col-sm-offset-2"
>
Tips: 管理
账号是服务器存在的root等高权限账号,用来推送新建系统
用户
</p>
<div
class=
"form-group"
id=
"admin_account"
style=
"display: none"
>
<div
class=
"form-group"
id=
"admin_account"
style=
"display: none"
>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"hr-line-dashed"
></div>
<label
class=
"col-sm-2 control-label"
>
管理用户名
<span
class=
"red-fonts"
>
*
</span>
</label>
<label
class=
"col-sm-2 control-label"
>
管理用户名
<span
class=
"red-fonts"
>
*
</span>
</label>
...
...
templates/jlog/log_offline.html
View file @
da7cc102
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
{% endifnotequal %}
{% endifnotequal %}
<th
class=
"text-center"
>
录像
</th>
<th
class=
"text-center"
>
录像
</th>
<th
class=
"text-center"
>
登录时间
</th>
<th
class=
"text-center"
>
登录时间
</th>
<th
class=
"text-center"
>
结束时间
</th>
<th
class=
"text-center"
>
时长
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
{% endifnotequal %}
{% endifnotequal %}
<td
class=
"text-center"
><a
value=
"{% url 'log_record' %}?id={{ post.id }}"
class=
"log_record"
>
回放
</a></td>
<td
class=
"text-center"
><a
value=
"{% url 'log_record' %}?id={{ post.id }}"
class=
"log_record"
>
回放
</a></td>
<td
class=
"text-center start_time"
>
{{ post.start_time|date:"Y-m-d H:i:s"}}
</td>
<td
class=
"text-center start_time"
>
{{ post.start_time|date:"Y-m-d H:i:s"}}
</td>
<td
class=
"text-center end_time"
>
{{ post.end_time|
date:"Y-m-d H:i:s"
}}
</td>
<td
class=
"text-center end_time"
>
{{ post.end_time|
timeuntil:post.start_time
}}
</td>
</tr>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</tbody>
...
...
templates/setting.html
View file @
da7cc102
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<input
name=
"setting"
value=
"default"
style=
"display: none"
>
<input
name=
"setting"
value=
"default"
style=
"display: none"
>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
id=
"username"
name=
"username"
placeholder=
"Username"
type=
"text"
value=
"{{ setting_default.field1 }}"
class=
"form-control"
>
<input
id=
"username"
name=
"username"
placeholder=
"Username"
type=
"text"
value=
"{{ setting_default.field1 }}"
class=
"form-control"
>
<span
class=
"help-block m-b-none"
>
管理
用户为root或用户拥有NOPASSWD:ALL sudo权限的
用户
</span>
<span
class=
"help-block m-b-none"
>
管理
账号是服务器存在的root等高权限账号(或拥有NOPASSWD: ALL sudo权限),用来推送新建系统
用户
</span>
</div>
</div>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"hr-line-dashed"
></div>
...
...
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