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

Version Path
flapjack-0.6.51 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.50 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.49 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.48 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.47 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.46 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.45 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.44 lib/flapjack/gateways/web/views/contact.haml
flapjack-0.6.43 lib/flapjack/web/views/contact.haml
flapjack-0.6.42 lib/flapjack/web/views/contact.haml
flapjack-0.6.41 lib/flapjack/web/views/contact.haml
flapjack-0.6.40 lib/flapjack/web/views/contact.haml
flapjack-0.6.39 lib/flapjack/web/views/contact.haml
flapjack-0.6.38 lib/flapjack/web/views/contact.haml