- add_breadcrumb :invitations
= page_header

= render partial: 'tabs'

- accepted_course_users = @course_users.each.select { |user| !user.invited? }.size
- progress = accepted_course_users * 100 / [@course_users.length, 1].max
div.progress
  div.progress-bar role='progressbar' aria-valuenow=progress aria-valuemin='0' aria-valuemax='100' style="width: #{progress}%"
    span
      = t('.progress', accepted: accepted_course_users, total: @course_users.size)

= simple_format t('.manual_acceptance')

table.table.table-striped
  thead
    th = t('common.name')
    th = t('common.email')
    th = t('.invitation_code')
    th = t('.status')
    th
  tbody
    - @course_users.each do |course_user|
      = content_tag_for(:tr, course_user)
        th = course_user.name
        td = course_user.invitation.user_email.email
        td = course_user.invitation.invitation_key
        td = course_user.invited? ? t('course.users.status.invited') : t('course.users.status.accepted')
        td

- add_breadcrumb :invitations
= page_header

= render partial: 'tabs'

- accepted_course_users = @course_users.each.select { |user| !user.invited? }.size
- progress = accepted_course_users * 100 / [@course_users.length, 1].max
= display_progress_bar progress, [] do
  = t('.progress', accepted: accepted_course_users, total: @course_users.size)

= simple_format t('.manual_acceptance')

table.table.table-striped
  thead
    th = t('common.name')
    th = t('common.email')
    th = t('.invitation_code')
    th = t('.status')
    th
  tbody
    - @course_users.each do |course_user|
      = content_tag_for(:tr, course_user)
        th = course_user.name
        td = course_user.invitation.user_email.email
        td = course_user.invitation.invitation_key
        td = course_user.invited? ? t('course.users.status.invited') : t('course.users.status.accepted')
        td

Use display_progress_bar for existing course registration progress
Use display_progress_bar for existing course registration progress

harryggg/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,harryggg/coursemology2,harryggg/coursemology2