mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 14:37:17 +00:00
134 lines
5.7 KiB
HTML
134 lines
5.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Paste information</title>
|
|
<meta charset="utf-8">
|
|
<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>
|
|
<body>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h1 class="page-header" >Paste: {{ request.args.get('paste') }}</h1>
|
|
<h2 class="page-header" >
|
|
<div>
|
|
{% for tag in list_tags %}
|
|
<span class="btn btn-{{ bootstrap_label[loop.index0 % 6] }} btn-lg pull-left" data-toggle="modal" data-target="#myModal_{{ loop.index0 }}">{{ tag }}</span>
|
|
|
|
<!-- Modal edit this tag -->
|
|
<div class="modal fade" id="myModal_{{ loop.index0 }}" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content text-center">
|
|
<div class="modal-header" style="border-bottom: 4px solid #cccccc; background-color: #cccccc; color: #ffffff;">
|
|
<p class="heading">Edit this tag</p>
|
|
|
|
</div>
|
|
<div class="modal-body">
|
|
<span class="label label-{{ bootstrap_label[loop.index0 % 6] }}" >{{ tag }}</span>
|
|
</div>
|
|
<div class="modal-footer center">
|
|
<a href="{{ url_for('Tags.confirm_tag') }}?paste={{ request.args.get('paste') }}&tag={{ tag }}" class="btn btn-primary">
|
|
<span class="glyphicon glyphicon-ok "></span> Confirm this Tag
|
|
</a>
|
|
<a href="{{ url_for('Tags.remove_tag') }}?paste={{ request.args.get('paste') }}&tag={{ tag }}" class="btn btn-danger">
|
|
<span class="glyphicon glyphicon-trash "></span> Delete this Tag
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endfor %}
|
|
<button type="button" class="btn btn-light btn-lg" data-toggle="tooltip" title="Add Tag">
|
|
<span class="glyphicon glyphicon-plus "></span>
|
|
</span>
|
|
</div>
|
|
</h2>
|
|
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Source</th>
|
|
<th>Encoding</th>
|
|
<th>Language</th>
|
|
<th>Size (Kb)</th>
|
|
<th>Mime</th>
|
|
<th>Number of lines</th>
|
|
<th>Max line length</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>{{ date }}</td>
|
|
<td>{{ source }}</td>
|
|
<td>{{ encoding }}</td>
|
|
<td>{{ language }}</td>
|
|
<td>{{ size }}</td>
|
|
<td>{{ mime }}</td>
|
|
<td>{{ lineinfo.0 }}</td>
|
|
<td>{{ lineinfo.1 }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<button type="button" class="btn btn-success btn-lg" data-toggle="tooltip" title="Good Detection">
|
|
<span class="glyphicon glyphicon-thumbs-up "></span>
|
|
</span>
|
|
<button type="button" class="btn btn-danger btn-lg" data-toggle="tooltip" title="Bad Detection">
|
|
<span class="glyphicon glyphicon-thumbs-down "></span>
|
|
</span>
|
|
</div>
|
|
<div class="panel-body" id="panel-body">
|
|
{% if duplicate_list|length == 0 %}
|
|
<h3> No Duplicate </h3>
|
|
{% else %}
|
|
<h3> Duplicate list: </h3>
|
|
<table id="tableDup" class="table table-striped table-bordered">
|
|
{% set i = 0 %}
|
|
<thead>
|
|
<tr>
|
|
<th>Hash type</th>
|
|
<th>Paste info</th>
|
|
<th>Date</th>
|
|
<th>Path</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for dup_path in duplicate_list %}
|
|
<tr>
|
|
<td>{{ hashtype_list[loop.index - 1] }}</td>
|
|
<td>Similarity: {{ simil_list[loop.index - 1] }}%</td>
|
|
<td>{{ date_list[loop.index - 1] }}</td>
|
|
<td><a target="_blank" href="{{ url_for('showsavedpastes.showsavedpaste') }}?paste={{ dup_path }}" id='dup_path'>{{ dup_path }}</a></td>
|
|
<td><a target="_blank" href="{{ url_for('showsavedpastes.showDiff') }}?s1={{ request.args.get('paste') }}&s2={{ dup_path }}" class="fa fa-columns" title="Show differences"></a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
<h3> Content: </h3>
|
|
<a href="{{ url_for('showsavedpastes.showsavedrawpaste') }}?paste={{ request.args.get('paste') }}" id='raw_paste' > [Raw content] </a>
|
|
<p data-initsize="{{ initsize }}"> <pre id="paste-holder">{{ content }}</pre></p>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
<script>
|
|
$('#tableDup').DataTable();
|
|
</script>
|
|
</html>
|