% # expects "work" %>
<% if work.unrevealed? && !is_author_of?(work) %>
<%= render "works/mystery_blurb", item: work %>
<% else %>
<% if !work.posted? %>
<%= t('.draft_deletion_notice_html', deletion_date: date_in_zone(work.created_at + 29.days)) %>
<% end %>
<%= ts("Tags") %>
<% unless work.summary.blank? %>
<%= ts("Summary") %>
<%=raw strip_images(sanitize_field(work, :summary)) %>
<% end %>
<% unless work.series.empty? %>
<%= ts("Series") %>
<% work.series.each do |series| %>
-
<%= work_series_description(work, series) %>
<% end %>
<% end %>
<% if work.language.present? %>
- <%= ts("Language") %>:
- <%= work.language.name %>
<% end %>
- <%= ts('Words') %>:
- <%= number_with_delimiter(work.word_count) %>
- <%= ts('Chapters') %>:
- <%= chapter_total_display_with_link(work) %>
<% end %>
<% #### END CACHE show/hide %>
<% #### CACHE stats #### %>
<% cache("#{work.cache_key}/stats-v4", expires_in: 1.hour, skip_digest: true) do %>
<% unless work.approved_collections.empty? %>
- <%= ts('Collections') %>:
- <%= link_to number_with_delimiter(work.approved_collections.length), work_collections_path(work) %>
<% end %>
<% if work.count_visible_comments > 0 %>
<% end %>
<% if work.all_kudos_count > 0 %>
- <%= ts('Applause') %>:
- <%= link_to number_with_delimiter(work.all_kudos_count), work.number_of_posted_chapters > 1 ? work_path(work, anchor: "kudos", view_full_work: "true") : work_path(work, anchor: "kudos") %>
<% end %>
<% if (bookmark_count = work.public_bookmarks_count) > 0 %>
- <%= ts('Bookmarks') %>:
- <%= link_to_bookmarkable_bookmarks(work, number_with_delimiter(bookmark_count)) %>
<% end %>
- <%= ts("Plays") %>:
- <%= number_with_delimiter(work.hits) %>
<% end %>
<% #### END CACHE stats #### %>
<% end %>