Files
fizzy/app/views/bubbles/show.html.erb
T
Jason Zimdars 547b0f49ae Popped effect
2024-10-03 15:41:00 -05:00

32 lines
1.2 KiB
Plaintext

<% @page_title = @bubble.title %>
<% content_for :header do %>
<nav>
<%= link_to bucket_bubbles_path(@bubble.bucket), class: "btn flex-item-justify-start" do %>
<%= image_tag "arrow-left.svg", aria: { hidden: true }, size: 24 %>
<span class="for-screen-reader">All Bubbles</span>
<% end %>
<% if @bubble.popped? %>
<%= button_to bucket_bubble_pop_path(@bubble.bucket, @bubble), method: :delete, class: "btn" do %>
<%= image_tag "pop.svg", aria: { hidden: true }, size: 24 %>
<span>Un-pop</span>
<% end %>
<% else %>
<%= button_to bucket_bubble_pop_path(@bubble.bucket, @bubble), class: "btn" do %>
<%= image_tag "pop.svg", aria: { hidden: true }, size: 24 %>
<span>Pop</span>
<% end %>
<% end %>
</nav>
<% end %>
<div class="bubble__perma flex justify-center center margin-block-end-double">
<%= render "bubbles/bubble", bubble: @bubble %>
</div>
<section class="comments align-center center borderless margin flex flex-column gap-half" style="--bubble-color: <%= @bubble.color %>;">
<%= render_comments_and_boosts(@bubble) %>
<%= render "comments/new", bubble: @bubble %>
</section>