Sha256: 8963992c07f682a45cfca9fd68dbd8fed0ca0fd4e5453fdb94e50081eaf14b30
Contents?: true
Size: 1.02 KB
Versions: 10
Compression:
Stored size: 1.02 KB
Contents
.row .col-3 = render_wizard_sidebar(resource) - cpd_cycle = resource.cpd_cycle - start_at = cpd_cycle.start_at - end_at = cpd_cycle.end_at - last_3_cycles = Effective::CpdCycle.sorted.where('start_at <= ?', start_at).last(3) - last_3_scores = Effective::CpdStatement.where(cpd_cycle: last_3_cycles, user: resource.user).sum(&:score) %table.table.mt-4 %tbody - if end_at.present? && !resource.completed? %tr{title: "#{cpd_cycle} is available #{cpd_cycle.available_date}"} %td %h4= ((end_at - Time.zone.now) / 1.day).to_i %td days left to submit %tr %td %h4= cpd_score(resource.score.to_d) %td #{cpd_credits_label} out of #{resource.required_score.to_i} required %tr %td %h4= cpd_score(last_3_scores.to_d) %td #{cpd_credits_label} in last 3 #{cpd_cycles_label} (including this #{cpd_cycle_label}) = cpd_cycle.sidebar_content .col-9 = yield
Version data entries
10 entries across 10 versions & 1 rubygems