Bootstrap support in show saved paste

This commit is contained in:
Mokaddem 2016-10-27 12:38:39 +02:00
parent ac254e0e63
commit 59a7000527

View file

@ -4,13 +4,32 @@
<title>Paste information</title> <title>Paste information</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='font-awesome/css/font-awesome.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/sb-admin-2.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/dataTables.bootstrap.css') }}" rel="stylesheet" type="text/css" />
<script language="javascript" src="{{ url_for('static', filename='js/jquery.js')}}"></script>
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/dataTables.bootstrap.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery.flot.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery.flot.time.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery.flot.stack.js') }}"></script>
</head> </head>
<body> <body>
<div style="margin: 10px;">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header" >Paste: {{ request.args.get('paste') }}</h1>
<h2 class="page-header" >({{ request.args.get('num') }})</h2>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<h2> Paste: {{ request.args.get('num') }}</h2> <div class="row">
<h3> {{ request.args.get('paste') }} </h3>
<hr></br>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
@ -46,11 +65,16 @@
<h3> No Duplicate </h3> <h3> No Duplicate </h3>
{% else %} {% else %}
<h3> Duplicate list: </h3> <h3> Duplicate list: </h3>
<table style="width:100%"> <table id="tableDup" class="table table-striped table-bordered">
{% set i = 0 %} {% set i = 0 %}
<thead>
<tr> <tr>
<th style="text-align:left;">Hash type</th><th style="text-align:left;">Paste info</th> <th>Hash type</th>
<th>Paste info</th>
<th>Path</th>
</tr> </tr>
</thead>
<tbody>
{% for dup_path in duplicate_list %} {% for dup_path in duplicate_list %}
<tr> <tr>
<td>{{ hashtype_list[i] }}</td> <td>{{ hashtype_list[i] }}</td>
@ -59,6 +83,7 @@
</tr> </tr>
{% set i = i + 1 %} {% set i = i + 1 %}
{% endfor %} {% endfor %}
</tbody>
</table> </table>
{% endif %} {% endif %}
<h3> Content: </h3> <h3> Content: </h3>
@ -66,6 +91,9 @@
</div> </div>
</div> </div>
</div>
</body> </body>
<script>
$('#tableDup').DataTable();
</script>
</html> </html>