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
109
110
111
112
113
114
115
116
117
|
{% extends 'admin.twig' %}
{% block content %}
{% if filesWithInvalidHashes|length %}
{% set invalidFiles %}
{{ 'AutoLogImporter_InvalidFilesDescription'|translate }}
<ul class="autoLogImportInvalidFiles">
{% for fileWithInvalidHashes in filesWithInvalidHashes %}
<li>{{ 'AutoLogImporter_InvalidFileDetails'|translate(fileWithInvalidHashes.file, fileWithInvalidHashes.verify_hash, fileWithInvalidHashes.verify_file, fileWithInvalidHashes.hash) }}</li>
{% endfor %}
</ul>
{% endset %}
{{ invalidFiles|notification({'noclear': true, 'raw': true, 'context': 'error'}) }}
{% endif %}
<h2>{{ 'AutoLogImporter_ImportingFiles'|translate }}</h2>
<p>{{ 'AutoLogImporter_ToConfigurePluginGoToSettings'|translate('<a href="' ~ linkTo({'module': 'CoreAdminHome', 'action': 'adminPluginSettings'}) ~ '#AutoLogImporter">', ('CoreAdminHome_PluginSettings'|translate), '</a>')|raw }}</p>
<div id="listImportingFiles">
<table class="entityTable dataTable">
<thead>
<tr>
<th class="filename">{{ 'AutoLogImporter_File'|translate }}</th>
<th>{{ 'AutoLogImporter_StartDate'|translate }}</th>
<th>{{ 'AutoLogImporter_InProcessSince'|translate }}</th>
<th>{{ 'AutoLogImporter_FileSize'|translate }}</th>
<th>{{ 'AutoLogImporter_NumLogLines'|translate }}</th>
</tr>
</thead>
<tbody>
{% if importingFiles|length %}
{% for importingFile in importingFiles %}
<tr>
<td class="filename" title="{{ 'AutoLogImporter_FileDetails'|translate(importingFile.file, importingFile.command, importingFile.file_hash) }}">{{ importingFile.filename }}</td>
<td class="date_field">{{ importingFile.start_date }}</td>
<td>{{ importingFile.time_ago }}</td>
<td>{{ importingFile.size_human }}</td>
<td>{{ importingFile.num_log_lines }}</td>
</tr>
{% endfor %}
{% else %}
<tr><td colspan="5">{{ 'AutoLogImporter_NoImportingFiles'|translate }}</td></tr>
{% endif %}
</tbody>
</table>
</div>
<h2>{{ 'AutoLogImporter_ScheduledFiles'|translate }}</h2>
<p>{{ 'AutoLogImporter_ScheduledFilesDescription'|translate }}</p>
<div id="listScheduledFiles">
<table class="entityTable dataTable">
<thead>
<tr>
<th class="filename">{{ 'AutoLogImporter_File'|translate }}</th>
</tr>
</thead>
<tbody>
{% if scheduledFiles|length %}
{% for scheduledFile in scheduledFiles %}
<tr>
<td>{{ scheduledFile }}</td>
</tr>
{% endfor %}
{% else %}
<tr><td colspan="5">{{ 'AutoLogImporter_NoScheduledFiles'|translate }}</td></tr>
{% endif %}
</tbody>
</table>
</div>
<h2>{{ 'AutoLogImporter_ImportedFiles'|translate }}</h2>
<p>{{ 'AutoLogImporter_ImportedFilesDescription'|translate(limit) }}</p>
<div id="listImportedFiles">
<table class="entityTable dataTable">
<thead>
<tr>
<th class="filename">{{ 'AutoLogImporter_File'|translate }}</th>
<th>{{ 'General_Date'|translate }}</th>
<th>{{ 'AutoLogImporter_TimeTaken'|translate }}</th>
<th>{{ 'AutoLogImporter_FileSize'|translate }}</th>
<th>{{ 'AutoLogImporter_NumLogLines'|translate }}</th>
<th>{{ 'AutoLogImporter_Imported'|translate }}</th>
</tr>
</thead>
<tbody>
{% if importedFiles|length %}
{% for importedFile in importedFiles %}
<tr>
<td class="filename" title="{{ 'AutoLogImporter_FileDetails'|translate(importedFile.file, importedFile.command, importedFile.file_hash) }}">{{ importedFile.filename }}</td>
<td class="date_field" title="{{ importedFile.start_date|e('html_attr') }} - {{ importedFile.end_date|e('html_attr') }}">{{ importedFile.date }}</td>
<td>{{ importedFile.duration }}s</td>
<td>{{ importedFile.size_human }}</td>
<td>{{ importedFile.num_log_lines }}</td>
<td title="{{ 'AutoLogImporter_ImportDetails'|translate(importedFile.exit_code, importedFile.output)|e('html_attr') }}">
{% if importedFile.exit_code == 0 %}
<span class="icon-success"></span>
{% else %}
<span class="icon-error"></span>
{% endif %}
</td>
</tr>
{% endfor %}
{% else %}
<tr><td colspan="6">{{ 'AutoLogImporter_NoImportedFile'|translate }}</td></tr>
{% endif %}
</tbody>
</table>
</div>
{% endblock %}
|