% cache cache_key do %>
<% if comments_closed_for_commentable?(commentable) %>
<%= comments_closed_text %>
<% elsif require_verified_resident_for_commentable?(commentable, current_user) %>
<%= sanitize(t("comments.verified_only", verify_account: link_to_verify_account)) %>
<% elsif !valuation || can?(:comment_valuation, commentable) %>
<% css_id = parent_or_commentable_dom_id(parent_id, commentable) %>
<% end %>
<% end %>