Skip to content

Commit b94e342

Browse files
jmilljr24maebeale
authored andcommitted
use shared partial
1 parent 650488a commit b94e342

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

app/views/workshops/_copy_url.html.erb

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<div id="workshops_count">
22
<hr class="border-gray-300 my-6">
33
<div class="filters-applied w-full flex gap-3 items-center">
4-
<h3 class="text-sm font-semibold uppercase text-gray-500 tracking-wide">Workshops</h3>
5-
<%= render "copy_url" %>
4+
<h3 class="text-sm font-semibold uppercase text-gray-500 tracking-wide">
5+
Workshops
6+
</h3>
7+
<%= render "shared/copy_url" %>
68
</div>
79
</div>

app/views/workshops/index.html.erb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<%= turbo_frame_tag "frame_list" do %>
5050
<%= turbo_stream.replace("filters_applied", partial: "filters_applied") %>
5151
<%= turbo_stream.replace("workshops_count", partial: "workshops_count") %>
52-
<%= turbo_stream.replace("copy_url", partial: "copy_url") %>
52+
<%= turbo_stream.replace("copy_url", partial: "shared/copy_url") %>
5353
<div class="mt-6">
5454
<% if @workshops.any? %>
5555
<div id="workshops-list" class="space-y-4 animate-fade">
@@ -58,10 +58,7 @@
5858
breadcrumb: "Workshops", link_route: workshop_path(workshop) %>
5959
<% end %>
6060
</div>
61-
62-
<div class="pagination flex justify-center mt-12">
63-
<%= tailwind_paginate @workshops %>
64-
</div>
61+
<div class="pagination flex justify-center mt-12"><%= tailwind_paginate @workshops %></div>
6562
<% else %>
6663
<p class="text-gray-600">
6764
Your search returned no results. Please try again.

0 commit comments

Comments
 (0)