app/views/logs/index.erb in tailog-0.2.3 vs app/views/logs/index.erb in tailog-0.3.0

- old
+ new

@@ -5,11 +5,11 @@ <% if params[:file] %> <% file_path = File.join Tailog.log_path, params[:file] %> <h3 class="page-header"><%= file_path %></h3> <% File.open file_path do |file| %> - <div id="content"></div> + <div id="content" class="content-hover"></div> <% end %> <script type="text/javascript"> window.fileSize = {}; window.fileSizeDone = {}; @@ -28,11 +28,11 @@ window.fileSize[data.server_uuid] = data.file_size; if (!data.content) return; var shouldScrollToBottom = $window.scrollTop() + $window.height() == $document.height(); $content - .append('<p class="text-info">' + data.server_uuid + '</p>') + .append('<span class="text-info">' + data.server_uuid + '</span>') .append(data.content); if (shouldScrollToBottom) { $window.scrollTop($document.height() - $window.height()); } @@ -48,10 +48,10 @@ </script> <% else %> <% Dir[File.join Tailog.log_path, '**/*.log'].each do |file| %> <% relative_file = Pathname.new(file).relative_path_from(Pathname.new(Tailog.log_path)) %> - <a href="?file=<%= relative_file %>"><%= file %></a> + <p><a href="?file=<%= relative_file %>"><%= file %></a></p> <% end %> <% end %> <% rescue => error %> <%= erb :error, locals: { error: error }, layout: false %>