-
Notifications
You must be signed in to change notification settings - Fork 0
/
recent_changes.html
77 lines (75 loc) · 3.11 KB
/
recent_changes.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" prefix="og: http://ogp.me/ns#">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<title>New words - Botjagwar</title>
<meta content="">
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="lib/datatable/jquery.dataTables.min.css"/>
<link rel="stylesheet" href="/css/style.css"/>
<style>
</style>
</head>
<script type="text/javascript" src='lib/vue.js'></script>
<script type="module" src='js/header.js'></script>
<script type="module" src="js/utils.js"></script>
<script type="module" src='js/recentchanges.js'></script>
<body>
<div id='app'>
<botjagwar-header></botjagwar-header>
<div style="margin:5%;">
<h1>New words</h1>
<table id="NewWordsTable" class='paginate table table-sm table-bordered'>
<thead>
<th>Change date</th>
<th>Word</th>
<th>Language code</th>
<th>Part of speech</th>
</thead>
<tr v-for="word in words">
<td>{{word.last_modified}}</td>
<td><a :href="'/word.html?word=' + word.id">{{word.word}}</a></td>
<td>
<a :href="'/dictionary.html?language=' + word.language">{{language_mapping[word.language]}}</a>
<span class="badge badge-light"><a :href="'/dictionary.html?language=' + word.language">{{word.language}}</a></span>
</td>
<td>{{word.part_of_speech}}</td>
</tr>
</table>
<h1>New definitions</h1>
<table id="NewDefinitionsTable" class='paginate table table-sm table-bordered'>
<thead>
<th>Last modified</th>
<th>Definitions</th>
<th>Language</th>
<th>Actions</th>
</thead>
<tr v-for="definition in definitions">
<td>{{definition.date_changed}}</td>
<td>{{definition.definition}}</td>
<td>
<a :href="'/dictionary.html?language=' + definition.definition_language">{{language_mapping[definition.definition_language]}}</a>
<span class="badge badge-light"><a
:href="'/dictionary.html?language=' + definition.definition_language">{{definition.definition_language}}</a></span>
</td>
<td><a :href="'/definition.html?defid=' + definition.id ">
<button class="btn btn-primary btn-sm" type="button">edit</button>
</a></td>
</tr>
</table>
</div>
</div>
<script type="text/javascript" src='lib/jquery-3.4.1.js'></script>
<script type="text/javascript" src='lib/datatable/jquery.dataTables.min.js'></script>
<script type="text/javascript" src='lib/bootstrap/js/bootstrap.js'></script>
<script type="text/javascript">
// Basic example
$(document).ready(function () {
$('.paginate').DataTable({
"paging": true // false to disable pagination (or any other option)
});
$('.dataTables_length').addClass('bs-select');
});
</script>
</body>
</html>