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
8121e494
Commit
8121e494
authored
Jul 08, 2015
by
蓝枫
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from ljjjustin/master
fix error url in host search page
parents
079338f8
f5e57da1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
views.py
jasset/views.py
+2
-3
host_search.html
templates/jasset/host_search.html
+1
-1
No files found.
jasset/views.py
View file @
8121e494
...
...
@@ -232,7 +232,7 @@ def host_add_batch(request):
active_types
=
{
'激活'
:
1
,
'禁用'
:
0
}
dept_id
=
get_user_dept
(
request
)
if
request
.
method
==
'POST'
:
multi_hosts
=
request
.
POST
.
get
(
'j_multi'
)
.
split
(
'
\n
'
)
multi_hosts
=
request
.
POST
.
get
(
'j_multi'
)
.
split
lines
(
)
for
host
in
multi_hosts
:
if
host
==
''
:
break
...
...
@@ -927,4 +927,4 @@ def host_search(request):
posts
=
list
(
set
(
post_all
)
&
set
(
post_perm
))
contact_list
,
p
,
contacts
,
page_range
,
current_page
,
show_first
,
show_end
=
pages
(
posts
,
request
)
return
my_render
(
'jasset/host_search.html'
,
locals
(),
request
)
\ No newline at end of file
return
my_render
(
'jasset/host_search.html'
,
locals
(),
request
)
templates/jasset/host_search.html
View file @
8121e494
...
...
@@ -35,7 +35,7 @@
<td
class=
"text-center"
>
{{ post.date_added|date:"Y-m-d H:i:s" }}
</td>
<td
class=
"text-center"
name=
"j_comment"
>
{{ post.comment }}
</td>
<td
class=
"text-center"
data-editable=
'false'
>
<a
value=
"/jasset/
{{ post.ip }}/
"
class=
"iframe btn btn-xs btn-primary"
>
详情
</a>
<a
value=
"/jasset/
host_detail/?id={{ post.id }}
"
class=
"iframe btn btn-xs btn-primary"
>
详情
</a>
{% ifnotequal session_role_id 0 %}
<a
href=
"/jasset/host_edit/?id={{ post.id }}"
class=
"btn btn-xs btn-info"
>
编辑
</a>
<a
href=
"/jasset/host_del/{{ post.id }}"
class=
"btn btn-xs btn-danger"
>
删除
</a>
...
...
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