diff options
| author | Steve Kemp <steve@steve.org.uk> | 2012-11-14 22:49:54 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2012-11-14 22:49:54 +0000 | 
| commit | c3d63ad02bba5401136a75dd7053cb5e1e33c1c4 (patch) | |
| tree | e81cfc0ed4fac73961b1bf8ef0b2612898c3907e | |
| parent | c74412d0b8554bca48771b9fe69250ce83a262dc (diff) | |
  Format the inside message more neatly
| -rw-r--r-- | lib/custodian/alerter.rb | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/lib/custodian/alerter.rb b/lib/custodian/alerter.rb index ec6168d..69de28e 100644 --- a/lib/custodian/alerter.rb +++ b/lib/custodian/alerter.rb @@ -51,13 +51,17 @@ class Alerter      return "" unless ( !resolved.nil? ) +    if ( host =~ /^http/ ) +        host = "<a href=\"#{host}\">#{host}</a>" +    end +      #      #  Test trange      #      if ( BYTEMARK_RANGES.any?{|range| range.include?(IPAddr.new(resolved.to_s))} ) -      return "<p>#{host} resolves to #{resolved} which is inside the Bytemark network.</p>" +      return "<p>#{host} resolves to <tt>#{resolved}</tt> which is inside the Bytemark network.</p>"      else -      return "<p>#{host} resolves to #{resolved} which <b>is not</b> inside the Bytemark network.</p>" +      return "<p>#{host} resolves to <tt>#{resolved}</tt> which <b>is not</b> inside the Bytemark network.</p>"      end    end | 
