about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-18 09:22:28 +0000
committerEric Wong <normalperson@yhbt.net>2011-03-18 09:22:28 +0000
commitcfadf58e6bce04b750605fd71d0cce6bbb06d8b0 (patch)
tree9b6fdbb73b94cbcbb1dd5f89669bfbae41b7d857 /lib
parent681e8295fe87e32676873319fb445709d16212d8 (diff)
downloadraindrops-cfadf58e6bce04b750605fd71d0cce6bbb06d8b0.tar.gz
It can help navigation, we think...
Diffstat (limited to 'lib')
-rw-r--r--lib/raindrops/watcher.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/raindrops/watcher.rb b/lib/raindrops/watcher.rb
index dcb1b7d..6e85241 100644
--- a/lib/raindrops/watcher.rb
+++ b/lib/raindrops/watcher.rb
@@ -299,11 +299,16 @@ class Raindrops::Watcher
       all.map do |addr,stats|
         e_addr = escape addr
         "<tr>" \
-          "<td><a href='/tail/#{e_addr}.txt'>#{escape_html addr}</a></td>" \
-          "<td><a href='/active/#{e_addr}.html'>#{stats.active}</a></td>" \
-          "<td><a href='/queued/#{e_addr}.html'>#{stats.queued}</a></td>" \
+          "<td><a href='/tail/#{e_addr}.txt' " \
+            "title='&quot;tail&quot; output in real time'" \
+            ">#{escape_html addr}</a></td>" \
+          "<td><a href='/active/#{e_addr}.html' " \
+            "title='show active connection stats'>#{stats.active}</a></td>" \
+          "<td><a href='/queued/#{e_addr}.html' " \
+            "title='show queued connection stats'>#{stats.queued}</a></td>" \
           "<td><form action='/reset/#{e_addr}' method='post'>" \
-            "<input type='submit' name='x' value='x' /></form></td>" \
+            "<input title='reset statistics' " \
+              "type='submit' name='x' value='x' /></form></td>" \
         "</tr>" \
       end.join << "</table>" \
       "<p>" \