From 7ace13bcdf88e47b0759f804f6477dc8d2587f36 Mon Sep 17 00:00:00 2001 From: Bart Mesuere Date: Thu, 26 Oct 2023 15:09:59 +0200 Subject: [PATCH] add blur to hidden and closed series --- app/views/activities/_series_activities_table.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/activities/_series_activities_table.html.erb b/app/views/activities/_series_activities_table.html.erb index 810c16d2ce..d17d3e0d8c 100644 --- a/app/views/activities/_series_activities_table.html.erb +++ b/app/views/activities/_series_activities_table.html.erb @@ -52,7 +52,7 @@ <%= "#{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) %>