Skip to content

Commit

Permalink
add blur to hidden and closed series
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere committed Oct 26, 2023
1 parent e242ebb commit 7ace13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/activities/_series_activities_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<td>
<%= "#{index + 1}." if local_assigns[:series]&.activity_numbers_enabled? %>
<% if activity.accessible?(current_user, @course) %>
<%= link_to activity.name, get_activity_path.call(activity) %>
<%= link_to activity.name, get_activity_path.call(activity), class: ('blur' if (local_assigns[:series].hidden? || local_assigns[:series].closed?) && Current.demo_mode) %>
<% else %>
<%= activity.name %>
<% if current_user&.course_admin?(@course) && current_user&.repository_admin?(activity.repository) %>
Expand Down

0 comments on commit 7ace13b

Please sign in to comment.