Skip to content

Commit 5b945c1

Browse files
committed
Add Open in Avo button on talk show page
1 parent 2a9763e commit 5b945c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/views/talks/_talk.html.erb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@
7575
</div>
7676

7777
<div class="flex grow gap-1 py-3 lg:divide-y-0 text-xs xl:justify-end overflow-y-visible overflow-x-scroll lg:overflow-x-hidden order-last xl:order-none">
78+
<% if Current.user&.admin? %>
79+
<%= ui_tooltip "Watch on YouTube" do %>
80+
<%= ui_button url: avo.resources_talk_path(talk), kind: :pill, target: "_blank" do %>
81+
<%= fa :avocado, size: :xs, style: :solid %>
82+
83+
<span class="text-xs">Open in Avo</span>
84+
<% end %>
85+
<% end %>
86+
<% end %>
87+
7888
<% if talk.youtube? || talk.parent_talk&.youtube? %>
7989
<%= ui_tooltip "Watch on YouTube" do %>
8090
<%= ui_button url: talk.external_player_url, kind: :pill, target: "_blank", data: {action: "click->video-player#pause"} do %>

0 commit comments

Comments
 (0)