<% # so bookmarks go to the external work page, not directly to the external link %> <% if external_work ||= @bookmarkable %> <%= link_to bookmarkable.title, bookmarkable %> <% else %> <%= link_to external_work.title, external_work.url %> <% end %> <%= ts("by") %> <%= byline(external_work) %>

<%= ts("Fandoms") %>: <% fandoms = external_work.tag_groups["Fandom"] %> <%= fandoms.collect{ |tag| link_to_tag_works(tag) }.join(", ").html_safe if fandoms %>
<%= get_symbols_for(external_work) %>

<%= set_format_for_date(external_work.created_at) %>

<%= t("external_works.notice") %>

<%= ts("Tags") %>
<% unless external_work.summary.blank? %>
<%= ts("Summary") %>
<%=raw strip_images(sanitize_field(external_work, :summary)) %>
<% end %>
<% unless external_work.language.blank? %>
<%= ts("Language:") %>
<%= external_work.language.name %>
<% end %> <% if Bookmark.count_visible_bookmarks(external_work) > 0 %>
<%= Bookmark.model_name.human(count: :many) %>:
<%= link_to_bookmarkable_bookmarks(external_work) %>
<% end %> <% if external_work.related_works.count > 0 %>
<%= RelatedWork.model_name.human(count: :many) %>:
<%= link_to number_with_delimiter(external_work.related_works.count), external_work %>
<% end %>