From a8be099aabc0661e2074e1bd4aa42fbb5139ae0d Mon Sep 17 00:00:00 2001 From: Lawrence Pit Date: Fri, 30 Nov 2012 11:37:08 +1100 Subject: Watcher: Use relative paths in HTML links When I mount Raindrops::Watcher like so: map "/_raindrops" do run Raindrops::Watcher.new end Then in the HTML output links use an absolute path instead of relative to the path /_raindrops/ Cheers, Lawrence Signed-off-by: Eric Wong --- lib/raindrops/watcher.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/raindrops/watcher.rb b/lib/raindrops/watcher.rb index 43c30ef..b7199a1 100644 --- a/lib/raindrops/watcher.rb +++ b/lib/raindrops/watcher.rb @@ -260,7 +260,7 @@ class Raindrops::Watcher headers.map { |k,v| "#{k.gsub(/^X-/, '')}#{v}" }.join << "
#{escape_html agg}
" \ - "
" \ + "" \ "
" \ "" headers["Content-Type"] = "text/html" @@ -346,14 +346,14 @@ class Raindrops::Watcher end.map do |addr,stats| e_addr = escape addr "" \ - "#{escape_html addr}" \ - "#{stats.active}" \ - "#{stats.queued}" \ - "
" \ + "" \ "
" \ "" \ -- cgit v1.2.3-24-ge0c7