-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupcoming-courses.html
executable file
·83 lines (53 loc) · 1.77 KB
/
upcoming-courses.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
---
layout: default
title: Upcoming courses
permalink: /courses/upcoming-courses/
---
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" language="javascript"
src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<div class="table-responsive">
<table id="upcoming_table_2" class="stripe row-border order-column" cellspacing="0" width="100%">
<thead>
<tr>
<th width="45%">Title</th>
<th>Training Provider</th>
<th>From</th>
<th>To</th>
</tr>
</thead>
<tbody>
{% assign sorted_posts = site.posts | where: "category", "upcoming" %}
{% for post in sorted_posts %}
<tr>
<td><a href="{{ post.link }}" target="_blank">{{ post.title }}</a><br><small class="text-muted"> posted: {{post.posted_date
| date_to_string}} </small></td>
<td>{{ post.training_provider }} </td>
<td>{{post.start_date}}
</td>
<td>{{post.end_date }}</td>
</tr>
{% endfor %}
<tfoot>
<tr>
<th>Title</th>
<th>Training Provider</th>
<th>From</th>
<th>To</th>
</tr>
</tfoot>
</tbody>
</table>
</div>
<script>
$(document).ready(function () {
var table = $('#upcoming_table_2').DataTable({
"sDom": 'Rlfrtip',
// colReorder: true,
"oColReorder": {
"bAddFixed": false
},
});
})
</script>