--- a/static/candolint.js Sun Jul 30 13:37:55 2017 +0800
+++ b/static/candolint.js Sun Jul 30 14:18:11 2017 +0800
window.setInterval(humanizeTimestamps, 15 * 1000);
+ $('.check-log div.task').each(function() {
+ var task = $line.attr('data-task');
+ var $lines = $line.nextAll('[data-task="' + task + '"]');
+ if ($lines.length === 0) { return; }
+ var $collapser = $('<a>').addClass('collapser');
+ $line.append($collapser);
+ var toggle = function() {
+ var collapsed = $collapser.hasClass('collapsed');
+ $lines.toggleClass('uk-hidden', collapsed);
+ $collapser.on('click', function() {
+ $collapser.toggleClass('collapsed');
+ var important = '.error, .warning, .failure, :target';
+ if (task !== 'checks' && $lines.filter(important).length === 0) {
+ $collapser.addClass('collapsed');
--- a/templates/check.html Sun Jul 30 13:37:55 2017 +0800
+++ b/templates/check.html Sun Jul 30 14:18:11 2017 +0800
- $('.check-log div.task').each(function() {
- var task = $line.attr('data-task');
- var $lines = $line.nextAll('[data-task="' + task + '"]');
- if ($lines.length === 0) { return; }
- var $collapser = $('<a>').addClass('collapser');
- $line.append($collapser);
- var toggle = function() {
- var collapsed = $collapser.hasClass('collapsed');
- $lines.toggleClass('uk-hidden', collapsed);
- $collapser.on('click', function() {
- $collapser.toggleClass('collapsed');
- var important = '.error, .warning, .failure, :target';
- if (task !== 'checks' && $lines.filter(important).length === 0) {
- $collapser.addClass('collapsed');