Sha256: 2cc274f53051223e719cb588bc3e8054ee7132a03dcc9dc4d0735a8ae6cda3ec
Contents?: true
Size: 1.41 KB
Versions: 14
Compression:
Stored size: 1.41 KB
Contents
!!! 5 - nav_haml = Haml::Engine.new(File.read(File.dirname(__FILE__) + '/_nav.haml')) - nav = nav_haml.render - css_haml = Haml::Engine.new(File.read(File.dirname(__FILE__) + '/_css.haml')) - css = css_haml.render %html %head %title Flapjack - Contact: #{@contact.name} = css %body %div#wrapper = nav %h1= @contact.name - if @contact.media && !@contact.media.empty? %ul - @contact.media.each_pair do |mk, mv| - if 'pagerduty'.eql?(mk) %li= "PagerDuty: " %ul - @pagerduty_credentials.each_pair do |pk, pv| - if 'password'.eql?(pk) %li= "#{pk}: ..." - else %li= "#{pk}: #{pv}" - else %li= "#{mk.capitalize}: #{mv}" - else %p No media - if @entities_and_checks && !@entities_and_checks.empty? %table %tr %th Entity name %th Checks - @entities_and_checks.each do |ec| - entity = ec[:entity] - checks = ec[:checks] %tr %td %p= entity.name %td - checks.each do |check| - link = "/check?entity=#{entity.name}&check=#{check}" %p %a(title='check status' href=link) #{check} - else %p No entities
Version data entries
14 entries across 14 versions & 1 rubygems