app/views/adoptions/index.html.erb
<% @title_for_header_only = t('.title') %>
<% content_for :title do %>
<h1 class="t-display page__heading page__heading--small">
<%= t('.title') %>
<% if @rubygem.owned_by?(current_user) %>
<i class="page__subheading page__subheading--block"><%= t(".subtitle_owner_html", gem: @rubygem.name) %></i>
<% else %>
<i class="page__subheading page__subheading--block"><%= t(".subtitle_user_html", gem: @rubygem.name) %></i>
<% end %>
</h1>
<% end %>
<div class="t-body">
<h2 class="adoption__heading adoption__heading--no-padding"><%= t(".ownership_calls") %>
<span class="tooltip__text tooltip__text--reduced-font-size" data-tooltip="Looking for maintainers">[?]</span>
</h2>
</div>
<% if @ownership_call %>
<div class="ownership__details">
<%= sanitize_note(@ownership_call.note) %>
<p class="t-text">
<strong><%= t("ownership_calls.created_by") %>:</strong>
<%= link_to @ownership_call.user_display_handle, profile_path(@ownership_call.user), class: "t-text t-link" %>
</p>
<% if @ownership_call.rubygem.owned_by?(current_user) %>
<%= button_to t("ownership_calls.close"), close_rubygem_ownership_calls_path(@ownership_call.rubygem.slug), method: :patch, class: "form__submit form__submit--medium" %>
<% end %>
</div>
<% elsif @rubygem.owned_by?(current_user) %>
<%= render partial: "ownership_calls/form", locals: { gem: @rubygem.name } %>
<% else %>
<div class="t-list__item">
<p><%= t(".no_ownership_calls", gem: @rubygem.name) %></p>
</div>
<% end %>
<%= render "ownership_requests/list" %>