Make price visible

This commit is contained in:
2023-12-05 23:37:40 +00:00
parent f2db361702
commit 63af5a866d
2 changed files with 31 additions and 0 deletions

View File

@@ -38,6 +38,17 @@
</div> </div>
<% end %> <% end %>
<%= if @item.price do %>
<div>
<div class="text-sm opacity-60">
Price:
</div>
<div>
~£<%= @item.price %>
</div>
</div>
<% end %>
<.button> <.button>
<.link class="block h-full w-full" href={@item.url} target="_blank"> <.link class="block h-full w-full" href={@item.url} target="_blank">
Go to seller <.icon name="hero-arrow-right" /> Go to seller <.icon name="hero-arrow-right" />

View File

@@ -57,6 +57,16 @@
<.dropdown item={item} /> <.dropdown item={item} />
</div> </div>
</div> </div>
<%= if item.price do %>
<div>
<div class="text-sm opacity-60">
Price:
</div>
<div class="text-sm">
~£<%= item.price %>
</div>
</div>
<% end %>
<div> <div>
<div class="text-sm opacity-60"> <div class="text-sm opacity-60">
Priority: Priority:
@@ -106,6 +116,16 @@
/> />
<.dropdown item={item} /> <.dropdown item={item} />
</div> </div>
<%= if item.price do %>
<div class="col-span-3">
<div class="text-sm opacity-60">
Price:
</div>
<div class="text-sm">
~£<%= item.price %>
</div>
</div>
<% end %>
<%= if item.description do %> <%= if item.description do %>
<div class="col-span-3 w-full"> <div class="col-span-3 w-full">
<div class="text-sm opacity-60"> <div class="text-sm opacity-60">