Skip to content

Commit

Permalink
参加者がいる場合のみフレンズボタンを表示する条件を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
atzzCokeK committed Feb 24, 2025
1 parent 19b24c6 commit 0bb53bd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/components/_session_card.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<a href="<%= schedule[:session_url] %>" class="text-lg font-semibold text-accent underline underline-offset-4 block">
<%= schedule[:session_title] %>
</a>

<%# 登壇者情報 %>
<div class="flex items-center gap-x-2">
<%= render 'components/avatar', name: schedule[:presenter][:name], url: schedule[:presenter][:avatar_url], size: 'm' %>
Expand All @@ -14,10 +13,10 @@
<span class="text-sm text-shade-30">@<%= schedule[:presenter][:handle] %></span>
</div>
</div>

<%# フレンズボタン(参加者リスト)%>
<%= render 'components/friends_button', profiles: attendees, onClick: "console.log('FIXME: clicked Friends Button')" %>

<% if attendees.present? %>
<%= render 'components/friends_button', profiles: attendees, onClick: "console.log('FIXME: clicked Friends Button')" %>
<% end %>
<%# 追加・削除ボタン %>
<%= render("components/button",
icon: scheduled ? render("components/icons/close") : render("components/icons/add"),
Expand Down

0 comments on commit 0bb53bd

Please sign in to comment.