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
0ccb808b
Commit
0ccb808b
authored
Nov 04, 2014
by
guanghongwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
08c30e46
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
132 additions
and
2 deletions
+132
-2
views.py
webroot/AutoSa/AutoSa/views.py
+1
-1
bootstrap-dialog.css
webroot/AutoSa/static/css/bootstrap-dialog.css
+121
-0
bootstrap-dialog.js
webroot/AutoSa/static/js/bootstrap-dialog.js
+0
-0
logView.html
webroot/AutoSa/templates/logView.html
+10
-1
No files found.
webroot/AutoSa/AutoSa/views.py
View file @
0ccb808b
...
@@ -983,7 +983,7 @@ def logHistory(request):
...
@@ -983,7 +983,7 @@ def logHistory(request):
log
=
Logs
.
objects
.
filter
(
id
=
int
(
logid
))
log
=
Logs
.
objects
.
filter
(
id
=
int
(
logid
))
if
log
:
if
log
:
log
=
log
[
0
]
log
=
log
[
0
]
log_his
=
"
%
s.his"
%
log
.
filenam
e
log_his
=
"
%
s.his"
%
log
.
logfil
e
if
os
.
path
.
isfile
(
log_his
):
if
os
.
path
.
isfile
(
log_his
):
f
=
open
(
log_his
)
f
=
open
(
log_his
)
content
=
f
.
read
()
content
=
f
.
read
()
...
...
webroot/AutoSa/static/css/bootstrap-dialog.css
0 → 100644
View file @
0ccb808b
.bootstrap-dialog
{
}
.bootstrap-dialog
.modal-header
{
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
}
.bootstrap-dialog
.bootstrap-dialog-title
{
color
:
#fff
;
display
:
inline-block
;
}
.bootstrap-dialog.type-default
.bootstrap-dialog-title
{
color
:
#333
;
}
.bootstrap-dialog.size-normal
.bootstrap-dialog-title
{
font-size
:
16px
;
}
.bootstrap-dialog.size-large
.bootstrap-dialog-title
{
font-size
:
24px
;
}
.bootstrap-dialog
.bootstrap-dialog-close-button
{
float
:
right
;
filter
:
alpha
(
opacity
=
90
);
-moz-opacity
:
0.9
;
-khtml-opacity
:
0.9
;
opacity
:
0.9
;
}
.bootstrap-dialog.size-normal
.bootstrap-dialog-close-button
{
font-size
:
20px
;
}
.bootstrap-dialog.size-large
.bootstrap-dialog-close-button
{
font-size
:
30px
;
}
.bootstrap-dialog
.bootstrap-dialog-close-button
:hover
{
cursor
:
pointer
;
filter
:
alpha
(
opacity
=
100
);
-moz-opacity
:
1
;
-khtml-opacity
:
1
;
opacity
:
1
;
}
.bootstrap-dialog.size-normal
.bootstrap-dialog-message
{
font-size
:
14px
;
}
.bootstrap-dialog.size-large
.bootstrap-dialog-message
{
font-size
:
18px
;
}
.bootstrap-dialog.type-default
.modal-header
{
background-color
:
#fff
;
}
.bootstrap-dialog.type-info
.modal-header
{
background-color
:
#5bc0de
;
}
.bootstrap-dialog.type-primary
.modal-header
{
background-color
:
#428bca
;
}
.bootstrap-dialog.type-success
.modal-header
{
background-color
:
#5cb85c
;
}
.bootstrap-dialog.type-warning
.modal-header
{
background-color
:
#f0ad4e
;
}
.bootstrap-dialog.type-danger
.modal-header
{
background-color
:
#d9534f
;
}
.bootstrap-dialog
.bootstrap-dialog-button-icon
{
margin-right
:
3px
;
}
/**
* Icon animation
* Copied from font-awesome: http://fontawesome.io/
**/
.icon-spin
{
display
:
inline-block
;
-moz-animation
:
spin
2s
infinite
linear
;
-o-animation
:
spin
2s
infinite
linear
;
-webkit-animation
:
spin
2s
infinite
linear
;
animation
:
spin
2s
infinite
linear
;
}
@-moz-keyframes
spin
{
0
%
{
-moz-transform
:
rotate
(
0deg
);
}
100
%
{
-moz-transform
:
rotate
(
359deg
);
}
}
@-webkit-keyframes
spin
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
359deg
);
}
}
@-o-keyframes
spin
{
0
%
{
-o-transform
:
rotate
(
0deg
);
}
100
%
{
-o-transform
:
rotate
(
359deg
);
}
}
@-ms-keyframes
spin
{
0
%
{
-ms-transform
:
rotate
(
0deg
);
}
100
%
{
-ms-transform
:
rotate
(
359deg
);
}
}
@keyframes
spin
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
359deg
);
}
}
/** End of icon animation **/
\ No newline at end of file
webroot/AutoSa/static/js/bootstrap-dialog.js
0 → 100644
View file @
0ccb808b
This diff is collapsed.
Click to expand it.
webroot/AutoSa/templates/logView.html
View file @
0ccb808b
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<td>
{{ log.user }}
</td>
<td>
{{ log.user }}
</td>
<td>
{{ log.host }}
</td>
<td>
{{ log.host }}
</td>
<td><a
href=
"#"
>
监控
</a></td>
<td><a
href=
"#"
>
监控
</a></td>
<td><a
href=
"/logHistory/?id={{ log.id }}"
>
命令统计
</a></td>
<td><a
href=
"/logHistory/?id={{ log.id }}"
class=
"log_command"
>
命令统计
</a></td>
<td><a
href=
"#"
>
阻断
</a>
</td>
<td><a
href=
"#"
>
阻断
</a>
</td>
<td>
{{ log.start_time|stamp2str }}
</td>
<td>
{{ log.start_time|stamp2str }}
</td>
<td>
{{ log.end_time|stamp2str }}
</td>
<td>
{{ log.end_time|stamp2str }}
</td>
...
@@ -31,6 +31,15 @@
...
@@ -31,6 +31,15 @@
{% endfor %}
{% endfor %}
</tbody>
</tbody>
</table>
</table>
<script >
$
(
'.log_command'
).
on
(
'click'
,
function
(){
var
url
=
this
.
attr
(
'href'
);
$
.
ajax
({
url
:
url
,
success
:
function
(
data
){
BootstrapDialog
.
show
({
title
:
'命令统计'
,
message
:
data
});
}});
return
false
;
})
</script>
<!--<button class="btn btn-primary">删除</button>-->
<!--<button class="btn btn-primary">删除</button>-->
</form>
</form>
<nav>
<nav>
...
...
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