.cpd-statement-activity - cpd_activity = cpd_statement_activity.cpd_activity - rule = cpd_statement_activity.cpd_statement.cpd_cycle.rule_for(cpd_activity) .float-right= link_to icon('x', class: 'small-1'), '#', 'data-cpd-collapse': true %p = cpd_statement_activity %br %small.text-muted= rule.credit_description.to_s - if cpd_activity.body.present? .mb-3= cpd_activity.body.to_s - if cpd_statement_activity.is_carry_over? %p %strong Carried Forward From %br = cpd_statement_activity.original.cpd_statement.cpd_cycle.to_s .row.mb-3 .col-sm-8 .row - if cpd_activity.amount_label.present? .col %strong= cpd_activity.amount_label.capitalize %br = cpd_score(cpd_statement_activity.amount) - if cpd_activity.amount2_label.present? .col.text-center %strong= cpd_activity.amount2_label = cpd_score(cpd_statement_activity.amount2) - if cpd_activity.amount_static? .col %strong One (1) #{cpd_activity}: %br 1 .col-sm-4 .row .col.text-center %strong= cpd_credits_label.capitalize %br - if cpd_statement_activity.reduced_messages.present? %span{title: cpd_statement_activity.reduced_messages.values.join("\n\n")}= "#{cpd_score(cpd_statement_activity.score)} *" - else = cpd_score(cpd_statement_activity.score) .col.text-center.carry-forward %strong Carry %br = cpd_score(cpd_statement_activity.carry_forward) - if cpd_statement_activity.files.present? %p %strong Supporting Documents %ul - cpd_statement_activity.files.each do |file| = link_to(file.filename, url_for(file), target: '_blank') %p %strong Description %br = simple_format(cpd_statement_activity.description.to_s.presence || '-')