Skip to content

Commit

Permalink
Update app/views/courses/show.html.erb
Browse files Browse the repository at this point in the history
Co-authored-by: Niko Strijbol <[email protected]>
  • Loading branch information
jorg-vr and niknetniko authored Feb 12, 2024
1 parent f2e6dbb commit b7b1d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/courses/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="card-actions card-border">
<% if current_user&.member_of? @course %>
<%= button_to t('.unsubscribe'), unsubscribe_course_path(@course), class: 'btn btn-text', data: {confirm: t('general.are_you_sure')} %>
<% elsif @course.featured? and policy(@course).copy?%>
<% elsif @course.featured? and policy(@course).copy? %>
<%= registration_action_for course: @course, membership: @current_membership, secret: (@course.secret if @course.secret_required?(current_user)), class: 'btn btn-text' %>
<% end %>
<% if policy(@course).copy? or policy(@course).scoresheet? or policy(@course).download_submissions? %>
Expand Down

0 comments on commit b7b1d65

Please sign in to comment.