Skip to content

Commit

Permalink
Merge pull request #198 from kufu/fixes/friends_schedule_on_mobile
Browse files Browse the repository at this point in the history
Show friends plans on schedule page
  • Loading branch information
kinoppyd authored May 14, 2024
2 parents 048e5df + 44128e1 commit 1e8d662
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/schedules/_mobile_table_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
<% track_list.each do |track| %>
<% if row.tracks[track] %>
<div class="p-2"><%= render("schedules/card", schedule: row.tracks[track], mode: :schedule, inactive: @selected) %></div>
<% if @user&.profile %>
<div class="flex flex-wrap ml-6 mb-4">
<% @user.profile.friend_profiles.each do |profile| %>
<% if @friends_schedules_map[profile.id].include?(row.tracks[track].id) %>
<img src="<%= profile.avatar_url %>" class="h-8 w-8 rounded-full border-2 border-black mt-[-4px] ml-[-16px] mt-1" />
<% end %>
<% end %>
</div>
<% end %>
<% end %>
<% end %>

0 comments on commit 1e8d662

Please sign in to comment.