anthonymidili/Bullhorn

View on GitHub
app/views/reposts/_form.html.haml

Summary

Maintainability
Test Coverage
= turbo_frame_tag dom_id(post, "repost_form"),
class: dom_id(post, "repost_form") do
  - if current_user.has_reposted?(post)
    = render "reposts/unrepost_button", post: post
  - else
    = turbo_frame_tag dom_id(post, "select_repost_type") do
      = link_to select_reposts_path(repost: { post_id: post.id }),
      class: "btn btn-link black", title: "Repost" do
        %i.fa-solid.fa-repeat.fa-xl.black