app/views/schools/_prompt_join_programme.html.erb
<% if school %>
<% if programme_type = school.suggested_programme_types.first %>
<% if programme_type.activity_types.length == programme_type.activity_type_count %>
<%= component 'info_bar',
status: :neutral,
style: local_assigns[:style],
title: t('schools.prompts.join_programme.completed_message_html',
count: programme_type.bonus_score,
title: programme_type.title),
icon: fa_icon('tasks fa-3x'),
buttons: { t('common.labels.complete') => programme_type_path(programme_type) } %>
<% else %>
<%= component 'info_bar',
status: :neutral,
style: local_assigns[:style],
title: t('schools.prompts.join_programme.message_html',
count: programme_type.activity_type_count,
title: programme_type.title),
icon: fa_icon('tasks fa-3x'),
buttons: { t('common.labels.start') => programme_type_path(programme_type) } %>
<% end %>
<% end %>
<% end %>