Sha256: 86de86ff962c32215ac0afe07c06203496bfe2a9b0b1b4002940000b13218090
Contents?: true
Size: 1.09 KB
Versions: 19
Compression:
Stored size: 1.09 KB
Contents
%tt - case campaign.status.to_sym - when :started - if campaign.starts_on = t(:started_ago, time_ago_in_words(campaign.starts_on)) - if campaign.ends_on - if campaign.ends_on > Date.today %span>= ", " + t(:finishes_in, distance_of_time_in_words(Date.today, campaign.ends_on)) - else %span.warn= "(" + t(:was_supposed_to_finish, campaign.ends_on.strftime('%b %e, %Y')) + ")" - else %span.warn> #{t :no_start_date} - when :planned - if campaign.starts_on - if campaign.starts_on > Date.today = t(:starts_in, distance_of_time_in_words(Date.today, campaign.starts_on)) - elsif campaign.starts_on < Date.today %span.warn= t(:was_supposed_to_start, :time_ago => distance_of_time_in_words(campaign.starts_on, Date.today), :start_date => campaign.starts_on.strftime('%b %e, %Y')) - else %span.cool #{t :starts_today} - else %span.warn> #{t :no_start_date} - when :completed = t(:finished_on, campaign.ends_on.strftime('%b %e, %Y')) if campaign.ends_on
Version data entries
19 entries across 19 versions & 2 rubygems