Sha256: 8f4ca13b47e978605d9c73eb3c9ed8c30204bad730a23914825ea2112c377fc4
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
Contents
<div class="row"> <div class="section"> <h1>Rake Task Log</h1> <hr /> <div id="log_content" class="overflow-y: scroll"> <%= @rake_task_log_content.html_safe %> </div> <script type="application/javascript"> var interval; var content_url = "<%= @rake_task_log_content_url %>" var is_requesting = false function replaceContent(content) { document.getElementById('log_content').innerHTML = content } interval = setInterval(function () { if (is_requesting) { return } is_requesting = true; fetch(content_url) .then(function(r) { return r.json() }) .then(function (r) { replaceContent(r.rake_task_log_content) if (r.is_rake_task_log_finished) { clearInterval(interval) } is_requesting = false }) .catch(function(err) { is_requesting = false clearInterval(interval) throw(err) }) }, 500) </script> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rake-ui-0.1.0 | app/views/rake_ui/rake_task_logs/show.html.erb |
rake-ui-0.0.1 | app/views/rake_ui/rake_task_logs/show.html.erb |