Sha256: e928cdc17939ba890fa63c2f520a394c46940375544892ce03f235239e17db03
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
<% begin %> <% file_path = File.join Tailog.log_path, params[:file] %> <% File.open file_path do |file| %> <% file_size = file.size %> <% file.seek params[:seek].to_i %> <% file.each_line do |line| %> <p><%= h line %></p> <% end %> <script type="text/javascript"> if (window.fileSize < <%= file_size %>) window.fileSize = <%= file_size %>; </script> <% end %> <% rescue => error %> <div class="alert alert-danger"> <h4><%= h error.class %>: <%= h error.message %></h4> <% error.backtrace.each do |backtrace| %> <%= h backtrace %><br> <% end %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tailog-0.1.6 | app/views/ajax.erb |