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
7adbf52a
Commit
7adbf52a
authored
Jan 31, 2015
by
guanghongwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsλ
parent
795183c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
34 deletions
+32
-34
views.py
jumpserver/views.py
+2
-4
base.html
templates/base.html
+2
-2
foot_script.html
templates/foot_script.html
+28
-0
head_script.html
templates/head_script.html
+0
-28
No files found.
jumpserver/views.py
View file @
7adbf52a
...
@@ -23,7 +23,6 @@ def skin_config(request):
...
@@ -23,7 +23,6 @@ def skin_config(request):
return
render_to_response
(
'skin_config.html'
)
return
render_to_response
(
'skin_config.html'
)
<<<<<<<
HEAD
def
jasset_group_add
(
name
,
comment
,
type
):
def
jasset_group_add
(
name
,
comment
,
type
):
if
BisGroup
.
objects
.
filter
(
name
=
name
):
if
BisGroup
.
objects
.
filter
(
name
=
name
):
emg
=
u'该业务组已存在!'
emg
=
u'该业务组已存在!'
...
@@ -64,7 +63,8 @@ def jasset_host_edit(j_ip, j_idc, j_port, j_type, j_group, j_active, j_comment):
...
@@ -64,7 +63,8 @@ def jasset_host_edit(j_ip, j_idc, j_port, j_type, j_group, j_active, j_comment):
a
.
save
()
a
.
save
()
a
.
bis_group
=
groups
a
.
bis_group
=
groups
a
.
save
()
a
.
save
()
=======
def
login
(
request
):
def
login
(
request
):
"""登录界面"""
"""登录界面"""
if
request
.
session
.
get
(
'username'
):
if
request
.
session
.
get
(
'username'
):
...
@@ -97,5 +97,3 @@ def logout(request):
...
@@ -97,5 +97,3 @@ def logout(request):
request
.
session
.
delete
()
request
.
session
.
delete
()
return
HttpResponseRedirect
(
'/login/'
)
return
HttpResponseRedirect
(
'/login/'
)
>>>>>>>
guanghongwei
templates/base.html
View file @
7adbf52a
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<link
rel=
"shortcut icon"
href=
"/static/img/facio.ico"
type=
"image/x-icon"
>
<link
rel=
"shortcut icon"
href=
"/static/img/facio.ico"
type=
"image/x-icon"
>
{% include 'link_css.html' %}
{% include 'link_css.html' %}
{% include 'head_script.html' %}
</head>
</head>
...
@@ -27,7 +28,6 @@
...
@@ -27,7 +28,6 @@
</div>
</div>
</div>
</div>
{#
<!--{% include 'script.html' %}-->
#}
</body>
</body>
{% include 'script.html' %}
{% include '
foot_
script.html' %}
</html>
</html>
templates/foot_script.html
0 → 100644
View file @
7adbf52a
<!-- Mainly scripts -->
<script
src=
"/static/js/plugins/metisMenu/jquery.metisMenu.js"
></script>
<script
src=
"/static/js/plugins/slimscroll/jquery.slimscroll.min.js"
></script>
<script
src=
"/static/js/bootstrap-dialog.js"
></script>
<script
src=
"/static/js/mindmup-editabletable.js"
></script>
<!-- Custom and plugin javascript -->
<script
src=
"/static/js/inspinia.js"
></script>
<script
src=
"/static/js/plugins/pace/pace.min.js"
></script>
<!-- iCheck box -->
{#
<script
src=
"/static/js/plugins/iCheck/icheck.min.js"
></script>
#}
<!-- Peity -->
<script
src=
"/static/js/plugins/peity/jquery.peity.min.js"
></script>
<!-- Peity -->
<script
src=
"/static/js/demo/peity-demo.js"
></script>
<!-- active menu -->
<script>
var
str
=
document
.
location
.
pathname
.
split
(
"/"
)[
1
];
var
str1
=
document
.
location
.
pathname
.
split
(
"/"
)[
2
];
$
(
"#"
+
str
).
addClass
(
'active'
);
$
(
"#"
+
str1
).
addClass
(
'active'
);
</script>
\ No newline at end of file
templates/script.html
→
templates/
head_
script.html
View file @
7adbf52a
<!-- Mainly scripts -->
<script
src=
"/static/js/jquery-2.1.1.js"
></script>
<script
src=
"/static/js/jquery-2.1.1.js"
></script>
<script
src=
"/static/js/bootstrap.min.js"
></script>
<script
src=
"/static/js/bootstrap.min.js"
></script>
<script
src=
"/static/js/plugins/metisMenu/jquery.metisMenu.js"
></script>
<script
src=
"/static/js/plugins/slimscroll/jquery.slimscroll.min.js"
></script>
<script
src=
"/static/js/bootstrap-dialog.js"
></script>
<script
src=
"/static/js/mindmup-editabletable.js"
></script>
<script
src=
"/static/js/base.js"
></script>
<script
src=
"/static/js/base.js"
></script>
<!-- Custom and plugin javascript -->
<script
src=
"/static/js/inspinia.js"
></script>
<script
src=
"/static/js/plugins/pace/pace.min.js"
></script>
<!-- iCheck box -->
<script
src=
"/static/js/plugins/iCheck/icheck.min.js"
></script>
<!-- Peity -->
<script
src=
"/static/js/plugins/peity/jquery.peity.min.js"
></script>
<!-- Peity -->
<script
src=
"/static/js/demo/peity-demo.js"
></script>
<script>
<script>
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
$
(
'.i-checks'
).
iCheck
({
$
(
'.i-checks'
).
iCheck
({
...
@@ -71,11 +52,3 @@
...
@@ -71,11 +52,3 @@
<!-- validator js -->
<!-- validator js -->
<script
src=
"/static/js/validator/jquery.validator.js"
></script>
<script
src=
"/static/js/validator/jquery.validator.js"
></script>
<script
src=
"/static/js/validator/zh_CN.js"
></script>
<script
src=
"/static/js/validator/zh_CN.js"
></script>
<!-- active menu -->
<script>
var
str
=
document
.
location
.
pathname
.
split
(
"/"
)[
1
];
var
str1
=
document
.
location
.
pathname
.
split
(
"/"
)[
2
];
$
(
"#"
+
str
).
addClass
(
'active'
);
$
(
"#"
+
str1
).
addClass
(
'active'
);
</script>
\ No newline at end of file
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