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
e96053ba
Commit
e96053ba
authored
Apr 18, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
c8d91884
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
6 deletions
+5
-6
views.py
jasset/views.py
+1
-2
views.py
jperm/views.py
+2
-3
jumpserver.conf
jumpserver.conf
+1
-1
admin.png
static/img/admin.png
+0
-0
root.bak.png
static/img/root.bak.png
+0
-0
group_detail.html
templates/jasset/group_detail.html
+1
-0
No files found.
jasset/views.py
View file @
e96053ba
...
@@ -430,8 +430,7 @@ def host_del(request, offset):
...
@@ -430,8 +430,7 @@ def host_del(request, offset):
host_id
=
request
.
POST
.
get
(
key
)
host_id
=
request
.
POST
.
get
(
key
)
db_host_delete
(
request
,
host_id
)
db_host_delete
(
request
,
host_id
)
else
:
else
:
host_id
=
int
(
offset
)
db_host_delete
(
request
,
offset
)
db_host_delete
(
request
,
host_id
)
return
HttpResponseRedirect
(
'/jasset/host_list/'
)
return
HttpResponseRedirect
(
'/jasset/host_list/'
)
...
...
jperm/views.py
View file @
e96053ba
...
@@ -774,10 +774,9 @@ def get_apply_posts(request, status, username, dept_name, keyword=None):
...
@@ -774,10 +774,9 @@ def get_apply_posts(request, status, username, dept_name, keyword=None):
posts
=
post_all
.
filter
(
dept
=
dept_name
)
posts
=
post_all
.
filter
(
dept
=
dept_name
)
elif
is_common_user
(
request
):
elif
is_common_user
(
request
):
if
keyword
:
if
keyword
:
posts
=
post_keyword_all
.
filter
(
us
er
=
username
)
posts
=
post_keyword_all
.
filter
(
apply
er
=
username
)
else
:
else
:
posts
=
post_all
.
filter
(
user
=
username
)
posts
=
post_all
.
filter
(
applyer
=
username
)
return
posts
return
posts
...
...
jumpserver.conf
View file @
e96053ba
#coding: utf8
#coding: utf8
[
base
]
[
base
]
ip
=
192
.
168
.
0
.
12
9
ip
=
192
.
168
.
20
.
20
9
port
=
80
port
=
80
key
=
88
aaaf7ffe3c6c04
key
=
88
aaaf7ffe3c6c04
...
...
static/img/admin.png
View replaced file @
c8d91884
View file @
e96053ba
This diff is collapsed.
Click to expand it.
static/img/root.bak.png
deleted
100644 → 0
View file @
c8d91884
6.42 KB
templates/jasset/group_detail.html
View file @
e96053ba
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
<div
class=
""
>
<div
class=
""
>
<a
target=
"_blank"
href=
"/jasset/host_add"
class=
"btn btn-sm btn-primary"
>
添加主机
</a>
<a
target=
"_blank"
href=
"/jasset/host_add"
class=
"btn btn-sm btn-primary"
>
添加主机
</a>
<b
class=
"pull-right"
>
提示: 此页面删除只从本主机组中剔除主机
</b>
</div>
</div>
<form
id=
"contents_form"
name=
"contents_form"
>
<form
id=
"contents_form"
name=
"contents_form"
>
...
...
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