Sha256: 5d56ce2f0d0fc5527b828f583ab92b214c60f323f476494db4d6e0cba26fc2e7

Contents?: true

Size: 809 Bytes

Versions: 10

Compression:

Stored size: 809 Bytes

Contents

= card(cpd_statement) do
  %table.table
    %tbody
      %tr
        %th Name
        %td
          = cpd_statement.user
          %br
          %small= mail_to cpd_statement.user.email

        - if request.path.start_with?('/admin') && respond_to?(:edit_admin_user_path)
          %tr
            %th User
            %td= link_to(cpd_statement.user, edit_admin_user_path(cpd_statement.user))

      - if cpd_statement.completed?
        %tr
          %th Completed
          %td= cpd_statement.submitted_at.strftime('%F %H:%M')

      %tr
        %th= cpd_cycle_label.titleize
        %td= cpd_statement.cpd_cycle

      %tr
        %th Total #{cpd_credits_label.titleize}
        %td= cpd_score(cpd_statement.score)

      %tr
        %th Carry Forward
        %td= cpd_score(cpd_statement.carry_forward)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
effective_cpd-0.4.3 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.4.2 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.4.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.4.0 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.3.3 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.3.2 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.3.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.3.0 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.2.1 app/views/effective/cpd_statements/_summary.html.haml
effective_cpd-0.2.0 app/views/effective/cpd_statements/_summary.html.haml