= render 'admission_header', admission_video: true

#promo
  %h2
    = admission.title
    %br
    = "#{t('admissions.deadline')}:"
    =l admission.shown_application_deadline, format: :short
    - if admission.shown_application_deadline < Time.current
      %br
      %span{ style: "color: #a03033; text-decoration: underline; font-size: 0.9em;" }
        Utvidet til
        = l admission.actual_application_deadline, format: :short
  %p
    = simple_format t('admissions.admission_promo')
    %br
    - if can? :manage, Admission
      [
      = link_to edit_admissions_admin_admission_path(admission) do
        = t('admissions.edit_admission')
      ]

    - if can? :show, :admissions_admin_admissions
      [
      = link_to admissions_admin_admission_path(admission) do
        = t('admissions.administer_my_group')
      ]

    - if can? :statistics, :admissions_admin_admissions
      [
      = link_to statistics_admissions_admin_admission_path(admission) do
        = t('admissions.statistics')
      ]

= render 'admission_header', admission_video: true

#promo
  %h2
    = admission.title
    %br
    = "#{t('admissions.deadline')}:"
    =l admission.shown_application_deadline, format: :short
    - if admission.shown_application_deadline < Time.current
      %br
      %span{ style: "color: #a03033; text-decoration: underline; font-size: 0.9em;" }
        Utvidet til
        = l admission.actual_application_deadline, format: :short
  %p
    = simple_format t('admissions.admission_promo')
    %br
    - if can? :manage, Admission
      [
      = link_to edit_admissions_admin_admission_path(admission) do
        = t('admissions.edit_admission')
      ]

    - if can? :show, Admission
      [
      = link_to admissions_admin_admission_path(admission) do
        = t('admissions.administer_my_group')
      ]

    - if can? :statistics, Admission
      [
      = link_to statistics_admissions_admin_admission_path(admission) do
        = t('admissions.statistics')
      ]

Use Can^3 for permissions for admission buttons
Use Can^3 for permissions for admission buttons
