Sha256: 7d33718b2f78ed87ab25c9782b63e92a7af7ac9777d8847bf0a59f20d7839514

Contents?: true

Size: 531 Bytes

Versions: 5

Compression:

Stored size: 531 Bytes

Contents

<div id="logs">
  <h3><%= @logfile %></h3>
  <div class="data"></div>
</div>

<script type="text/javascript">
  function loadLogs() {
    $("#logs .data").load("logs/data", function() {

      // use timeout instead of an interval so that in case of network error
      // we don't end up with a queue of requests stacked up.
      setTimeout(loadLogs, 5000);
    });
  }

  $(document).ready(function() {
    loadLogs();
  });
</script>

<style>
  #logs .data {
    font-family: monospace;
    white-space: pre-wrap;
  }
</style>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppetfactory-0.5.3 views/logs.erb
puppetfactory-0.5.2 views/logs.erb
puppetfactory-0.5.1 views/logs.erb
puppetfactory-0.5.0 views/logs.erb
puppetfactory-0.4.0 views/logs.erb