Sha256: 656dde102aad41a7d3d7843b98cde1af9d2a265bc7778840786819bb25bbe48b
Contents?: true
Size: 1.61 KB
Versions: 13
Compression:
Stored size: 1.61 KB
Contents
.row .col-3 = render_wizard_sidebar(resource, path: effective_cpd.cpd_audit_build_path(resource)) %table.table.mt-4 %tbody - if resource.due_date.present? && !resource.was_submitted? %tr{title: "#{resource} is due on #{resource.due_date.strftime('%F')}"} %td %h4= (resource.due_date - Time.zone.now.to_date).to_i.abs %td = (Time.zone.now > resource.due_date) ? 'days overdue' : 'days left to submit' - if resource.user_cpd_required? - last_3_cycles = Effective::CpdCycle.sorted.where('start_at <= ?', Time.zone.now).last(3) - last_3_statements = Effective::CpdStatement.where(cpd_cycle: last_3_cycles, user: resource.user) %tr %td %h4= cpd_score(last_3_statements.sum(&:score).to_d) %td #{cpd_credits_label} in last 3 #{cpd_cycles_label} (including this #{cpd_cycle_label}) %tr %td %td - if EffectiveCpd.use_effective_messaging? .list-group - if (controller.action_name == 'chat') %a.active.list-group-item.list-group-item-action Chat - else %a.list-group-item.list-group-item-action{href: effective_cpd.chat_cpd_audit_path(resource)} Chat .col-9 %h1= @page_title - if resource.cpd_audit_level.rich_text_all_steps_audit_content.present? .mb-2= resource.cpd_audit_level.rich_text_all_steps_audit_content.to_s - if resource.cpd_audit_level.send("rich_text_#{step}_audit_content").present? .mb-2= resource.cpd_audit_level.send("rich_text_#{step}_audit_content").to_s = yield
Version data entries
13 entries across 13 versions & 1 rubygems