<%= ts("Artist Notes:") %>
<%# We don't want the ul tag hanging around when it's empty (i.e. when there are no recipients, parent works, or claims) but we can't skip this entire section because line 25 generates the link to child works that appear under any notes. We repeat this logic on line 63 to close the ul. %> <% if show_associations?(@work) %> <% end %> <%# notes %> <% unless @work.notes.blank? %>
<%=raw sanitize_field(@work, :notes) %>
<% end %> <% if @work.endnotes.present? || related_works_link %> <% endnotes_link = link_to (@work.notes.blank? ? t(".jump.notes") : t(".jump.more_notes")), get_endnotes_link(@work) %>

<% if @work.endnotes.present? && related_works_link %> <%= t(".jump.endnotes_and_related_works_html", endnotes_link: endnotes_link, related_works_link: related_works_link) %> <% elsif @work.endnotes.present? %> <%= t(".jump.endnotes_html", endnotes_link: endnotes_link) %> <% elsif related_works_link %> <%= t(".jump.related_works_html", related_works_link: related_works_link) %> <% end %>

<% end %>