<%# expects "bookmark" %>
<%= t(".bookmarked_by_html", pseud_link: link_to(bookmark.pseud.byline, user_pseud_bookmarks_path(bookmark.pseud.user, bookmark.pseud))) %>
<%# If you update the cache key, update flush_bookmark_cache in tag.rb %> <% blurb_cache_key = (is_author_of?(bookmark) ? "bookmark-owner-blurb-#{bookmark.cache_key}-v3" : "bookmark-blurb-#{bookmark.cache_key}-v3") %> <% cache(blurb_cache_key, skip_digest: true) do %>

<%= set_format_for_date(bookmark.created_at) %>

<%# information added by the bookmark owner %> <% unless bookmark.tag_string.blank? %>
<%= ts('Bookmarker\'s Tags:') %>
<% end %> <%# When the user views their own bookmark blurb, they are warned about seeing their bookmark in a modded collection %> <% unless bookmark.collections.blank? %> <% bookmark.collections.each do |modded| %> <% if modded.moderated? && !bookmark.approved_collections.include?(modded) && is_author_of?(bookmark) %>

<%= ts("The collection %{title} is currently moderated. Your bookmark must be approved by the collection maintainers before being listed there.", title: modded.title) %>

<% end %> <% end %> <% unless bookmark.approved_collections.empty? && !is_author_of?(bookmark) %>
<%= ts('Bookmarker\'s Collections:') %>
<% end %> <% unless bookmark.approved_collections.empty? && !is_author_of?(bookmark) %> <% end %> <% end %> <% if bookmark.bookmarker_notes.present? %>
<%= ts('Bookmarker\'s Notes') %>
<%= raw sanitize_field(bookmark, :bookmarker_notes, image_safety_mode: true) %>
<% end %> <%# end of information added by the bookmark owner %> <% end %> <% if is_author_of?(bookmark) %> <%= render "bookmarks/bookmark_owner_navigation", bookmark: bookmark %> <% elsif policy(bookmark).show_admin_options? %> <%= render "admin/admin_options", item: bookmark %> <% end %>