Sha256: b45d160b21a8ce704e55b2bbe6bd29f6ed3608d239753de86ab0ffa237cfab18
Contents?: true
Size: 763 Bytes
Versions: 9
Compression:
Stored size: 763 Bytes
Contents
module DeploysHelper def render_checklist(checklist) return if checklist.blank? render 'deploys/checklist', checklist: checklist end def render_monitoring(stack) return unless stack.monitoring? render 'deploys/monitoring', stack: stack end def render_checks(commit) return unless commit.stack.checks? render 'deploys/checks', commit: commit end def render_monitoring_panel(panel_spec) if url = panel_spec['image'] image_tag(url, panel_spec.slice('height', 'width', 'alt')) elsif url = panel_spec['iframe'] content_tag(:iframe, '', panel_spec.slice('height', 'width').merge('src' => url)) else content_tag(:span, "#{panel_spec.inspect} is not a valid monitoring panel spec") end end end
Version data entries
9 entries across 9 versions & 1 rubygems