mirror of https://github.com/MISP/misp-dashboard
170 lines
6.7 KiB
HTML
170 lines
6.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
|
|
<title>Misp feed dashboard</title>
|
|
|
|
<!-- Bootstrap Core CSS -->
|
|
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
|
<!-- Custom CSS -->
|
|
<link href="{{ url_for('static', filename='css/sb-admin-2.css') }}" rel="stylesheet">
|
|
<!-- Custom Fonts -->
|
|
<link href="{{ url_for('static', filename='css/font-awesome.min.css') }}" rel="text/css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="wrapper">
|
|
|
|
<!-- Navigation -->
|
|
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0; padding-left: 15px;">
|
|
<div class="navbar-header">
|
|
<a class="navbar-brand" href="{{ url_for('index') }}">Misp feed dashboard</a>
|
|
</div>
|
|
<!-- /.navbar-header -->
|
|
|
|
</nav>
|
|
|
|
<!-- Page Content -->
|
|
<div id="page-wrapper" style="margin: 0px; padding: 0px;">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="col-lg-5">
|
|
|
|
<div class="panel panel-default" style="margin-top: 15px;">
|
|
<div class="panel-heading">
|
|
<i class="fa fa-bar-chart-o fa-fw"></i> Log feed
|
|
</div>
|
|
<div id="panelbody" class="panel-body">
|
|
<div id="feedDiv1" style="width:100%; height:300px; position: relative;"></div>
|
|
</div>
|
|
<!-- /.panel-body -->
|
|
|
|
</div>
|
|
<!-- /.panel -->
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<i class="fa fa-tasks fa-fw"></i> Logs
|
|
<div class="pull-right">
|
|
<label style="padding-bottom:2px;">
|
|
<select class="form-control input-sm" id="log_select">
|
|
<option value="10">10</option>
|
|
<option value="25">25</option>
|
|
<option value="50">50</option>
|
|
<option value="100">100</option>
|
|
</select>
|
|
</label>
|
|
<input id="checkbox_log_info" type="checkbox" value="info"> INFO
|
|
<input id="checkbox_log_warning" type="checkbox" value="warning" checked="true"> WARNING
|
|
<input id="checkbox_log_critical" type="checkbox" value="critical" checked="true"> CRITICAL
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<table class="table table-bordered table-hover table-striped" id="table_log">
|
|
<thead id="table_log_head">
|
|
</thead>
|
|
<tbody id="table_log_body">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.col-lg-6 -->
|
|
<!-- /.col-lg-6 -->
|
|
<div class="col-lg-7">
|
|
|
|
<div class="panel panel-default" style="margin-top: 15px;">
|
|
<!--<div class="panel-heading">
|
|
<i class="fa fa-bar-chart-o fa-fw"></i> Feed
|
|
</div>-->
|
|
<div id="panelbody" class="panel-body">
|
|
<div id="feedDiv2" style="width:100%; height:700px; position: relative;"></div>
|
|
</div>
|
|
<!-- /.panel-body -->
|
|
|
|
</div>
|
|
<!-- /.panel -->
|
|
|
|
</div>
|
|
<!-- /.col-lg-6 -->
|
|
</div>
|
|
<!-- /.row CHART -->
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
</div>
|
|
<!-- /.col-lg-12 -->
|
|
</div>
|
|
<!-- /.row LOGS -->
|
|
|
|
|
|
</div>
|
|
<!-- /.container-fluid -->
|
|
</div>
|
|
<!-- /#page-wrapper -->
|
|
|
|
</div>
|
|
<!-- /#wrapper -->
|
|
|
|
<!-- jQuery -->
|
|
<script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
|
|
<!-- jQuery flot -->
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.js') }}"></script>
|
|
<!-- Bootstrap Core JavaScript -->
|
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
|
<!-- Index -->
|
|
<script>
|
|
/* URL */
|
|
var urlForLogs = "{{ url_for('logs') }}";
|
|
var urlForHead = "{{ url_for('getLogHead') }}";
|
|
/* DATA */
|
|
var graph_log_refresh_rate = {{ graph_log_refresh_rate }};
|
|
</script>
|
|
<script src="{{ url_for('static', filename='js/index.js') }}"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/jquery-jvectormap-2.0.3.css') }}" type="text/css" media="screen"/>
|
|
<script src="{{ url_for('static', filename='js/jquery-jvectormap-2.0.3.min.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/jquery-jvectormap-world-mill.js') }}"></script>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$('#feedDiv2').vectorMap({
|
|
map: 'world_mill',
|
|
series: {
|
|
markers: [{
|
|
attribute: 'fill',
|
|
scale: ['#FEE5D9', '#A50F15'],
|
|
values: { "AF": 16.63, "AL": 11.58, "DZ": 158.97},
|
|
min: 11,
|
|
max: 160
|
|
},{
|
|
attribute: 'r',
|
|
scale: [5, 20],
|
|
values: { "BE": 16.63, "DE": 11.58, "IT": 158.97},
|
|
min: 11,
|
|
max: 160
|
|
}],
|
|
}
|
|
})
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|