Sha256: 2988b0148b2fcadce60a0b807097f71fb95fd5b19b660e357a93e3d9f8a5d745

Contents?: true

Size: 1.3 KB

Versions: 12

Compression:

Stored size: 1.3 KB

Contents

!!! 5
- nav = render_haml('_nav.haml', self)
- css = render_haml('_css.haml', self)
%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=#{CGI.escape(entity.name)}&check=#{CGI.escape(check)}"
                  %p
                    %a(title='check status' href=link) #{check}
      - else
        %p No entities

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flapjack-0.7.1 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.7.0 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.61 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.60 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.59 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.58 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.57 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.56 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.55 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.54 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.53 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.52 lib/flapjack/gateways/web/views/contact.haml