tailog 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/application.css +4 -0
- data/app/views/logs/index.erb +30 -0
- data/lib/tailog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 361dce69d90fca61fd713028f3b09437ef413d66
|
4
|
+
data.tar.gz: 30bf5def85f5bf2766e04dd7748de624b75eb757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c9d9b16f1c8c43e7bd5f8033540fa490155ec7421eca2734e378af70ccd833496d4bb8ff470b5bcdf986f066fe3337b02064f0ebba490ddfff20f5dc4a90615
|
7
|
+
data.tar.gz: bf4cb8c8ae1c4db0f09bf78e25f036d18498c1ea82040f8a70dd3055d82bd012e57bf3c449a5e4247ce926a28f6051bb2ec95826829387c40a1e2c42e2787a4c
|
data/app/views/logs/index.erb
CHANGED
@@ -181,8 +181,38 @@
|
|
181
181
|
<% end %>
|
182
182
|
</tbody>
|
183
183
|
</table>
|
184
|
+
|
185
|
+
<div class="btn-group filter-btn-group" id="filter-btn-group">
|
186
|
+
<a id="recent-motified" class="btn btn-default">Recent Motified</a>
|
187
|
+
<a id="non-blank" class="btn btn-default">Non Blank</a>
|
188
|
+
</div>
|
184
189
|
<% end %>
|
185
190
|
|
191
|
+
<script type="text/javascript">
|
192
|
+
$.fn.dataTable.ext.search.push(function(settings, data, dataIndex) {
|
193
|
+
var recentMotified = $('#recent-motified').hasClass('active');
|
194
|
+
var nonBlank = $('#non-blank').hasClass('active');
|
195
|
+
|
196
|
+
if (recentMotified && Date.now() - Date.parse(data[2]) > 3 * 24 * 60 * 60 * 1000) {
|
197
|
+
return false;
|
198
|
+
}
|
199
|
+
|
200
|
+
if (nonBlank && data[1] === '0.0B') {
|
201
|
+
return false;
|
202
|
+
}
|
203
|
+
|
204
|
+
return true;
|
205
|
+
});
|
206
|
+
|
207
|
+
$('.data-tables').on('init.dt', function() {
|
208
|
+
$('.dataTables_filter').prepend($('#filter-btn-group'));
|
209
|
+
$('#filter-btn-group a').click(function() {
|
210
|
+
$(this).toggleClass('active');
|
211
|
+
$('.data-tables').DataTable().draw();
|
212
|
+
});
|
213
|
+
});
|
214
|
+
</script>
|
215
|
+
|
186
216
|
<% rescue => error %>
|
187
217
|
<%= erb :error, locals: { error: error }, layout: false %>
|
188
218
|
<% end %>
|
data/lib/tailog/version.rb
CHANGED