From 44128e1144cfa992c338ba4e1279835a0befe00f Mon Sep 17 00:00:00 2001 From: kinoppyd Date: Tue, 14 May 2024 23:34:21 +0900 Subject: [PATCH] Show friends plans on schedule page --- app/views/schedules/_mobile_table_row.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/schedules/_mobile_table_row.html.erb b/app/views/schedules/_mobile_table_row.html.erb index 5931f29f..9f2e4546 100644 --- a/app/views/schedules/_mobile_table_row.html.erb +++ b/app/views/schedules/_mobile_table_row.html.erb @@ -3,5 +3,14 @@ <% track_list.each do |track| %> <% if row.tracks[track] %>
<%= render("schedules/card", schedule: row.tracks[track], mode: :schedule, inactive: @selected) %>
+ <% if @user&.profile %> +
+ <% @user.profile.friend_profiles.each do |profile| %> + <% if @friends_schedules_map[profile.id].include?(row.tracks[track].id) %> + + <% end %> + <% end %> +
+ <% end %> <% end %> <% end %>