Sha256: f309ff72ff247e10d0c3b0dd83d5be0f946d2a50aa79f43949d100d4c65b9fc8
Contents?: true
Size: 647 Bytes
Versions: 5
Compression:
Stored size: 647 Bytes
Contents
module TechRadar module ApplicationHelper def label_color_for_ring(ring_name) if ring_name == 'Adopt' :success elsif ring_name == 'Hold' :warning else :default end end def panel_type_for_technology_why(technology) if technology.why_summary.blank? && warn_on_missing_why?(technology) :warning else :default end end def warn_on_missing_why?(technology) technology.ring != 'Adopt' && technology.ring != 'Trial' end def render_summary(summary_text) TechRadar::Rendering.renderer.render_text(summary_text) end end end
Version data entries
5 entries across 5 versions & 1 rubygems