-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.html
108 lines (94 loc) · 2.57 KB
/
display.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{% extends 'base.html' %}
{% block content %}
<div class="container">
<div class="jumbotron">
<h4>Téléchargement</h4>
<hr class="my-4">
<br />
<div class="row">
<div class="col-4 col-sm-3">
<a href={{ csv }} class="cust" >Fichier CSV</a>
</div>
<div class="col-4 col-sm-3">
<a href={{ json }} class="cust">Fichier JSON</a>
</div>
<div class="col-4 col-sm-3">
<a href="{{ xml }}" class="cust" >Fichier XML</a>
</div>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron">
<h4>Aperçu</h4>
<hr class="my-4">
<br />
<p>10 résultats sur {{ len }}</p>
<br />
<div style="overflow: auto;">
<table class="table table-hover">
<thead class="thead-light">
<tr>
<th style="width: 10%">ID</th>
<th style="width: 15%">Title</th>
<th style="width: 15%">Creator</th>
<th style="width: 10%">Creation Date</th>
<th style="width: 10%">Type</th>
<th style="width: 15%">Provider</th>
<th style="width: 15%">Country</th>
<th style="width: 10%">Preview</th>
</tr>
</thead>
<tbody>
{% for i in items[:10] %}
<tr>
<td>{{ i.items_id }}</td>
<td>{{ i.items_title }}</td>
<td>{{ i.items_dcCreator }}</td>
<td>{{ i.items_edmTimespanLabelLangAware_def }}</td>
<td>{{ i.items_type }}</td>
<td>{{ i.items_dataProvider }}</td>
<td>{{ i.items_country }}</td>
<td>{{ i.items_edmPreview }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$("#tuto").hide();
});
</script>
<!-- <script>
window.onbeforeunload = function (e) {
console.log('je pars de la page');
e = e || window.event;
// For IE and Firefox
if (e) {
window.location.replace("/");
$.ajax({
type: 'post',
url: '/cleaning/{{ dir }}'
});
}
// for Safari
location.replace("/");
$.ajax({
type: 'post',
url: '/cleaning/{{ dir }}'
});
};
</script>
<script>
window.onhashchange = function() {
location.replace("/");
$.ajax({
type: 'post',
url: '/cleaning/{{ dir }}'
});
}
</script> -->
{% endblock %}