% if @series.user_has_creator_invite?(current_user) %>
<%= ts("You've been invited to become a co-creator of this series. To accept or reject the request, visit your %{creator_requests_page}.",
creator_requests_page: link_to(ts("Co-Creator Requests page"), user_creatorships_path(current_user))).html_safe %>
<% end %>
<%= @series.title %>
<% if @series.restricted %>
<%= image_tag("lockblue.png", size: "15x15", alt: "(Restricted)", title: "Restricted", skip_pipeline: true) %>
<% end %>
<% if @series.hidden_by_admin %>
<%= image_tag("lockred.png", size: "15x15", alt: ts("(Hidden by Admin)"),
title: ts("Hidden by Administrator"),
skip_pipeline: true) %>
<% end %>
<% if policy(@series).show_admin_options? %>
<%= render "admin/admin_options", item: @series %>
<% end %>
<% if logged_in? %>
<%= render "series/series_navigation" %>
<% end %>
<%= ts("Series Metadata") %>
<% if @series.pseuds.many?%>
- <%= ts("Creators:") %>
- <%= byline(@series) %>
<% else %>
- <%= ts("Creator:") %>
- <%= byline(@series) %>
<% end %>
- <%= ts("Series Begun:") %>
- <%= @series.published_at.to_date %>
- <%= ts("Series Updated:") %>
- <%= @series.revised_at ? @series.revised_at.to_date : @series.published_at %>
<% unless @series.summary.blank? %>
- <%= ts("Description:") %>
<%=raw sanitize_field(@series, :summary) %>
<% end %>
<% unless @series.series_notes.blank? %>
- <%= ts("Notes:") %>
<%=raw sanitize_field(@series, :series_notes) %>
<% end %>
- <%= ts("Stats:") %>
-
- <%= Work.human_attribute_name("word_count") %>:
- <%= number_with_delimiter(@series.visible_word_count) %>
- <%= Work.model_name.human(count: :many) %>:
- <%= number_with_delimiter(@series.visible_work_count) %>
- <%= ts("Complete:") %>
- <%= @series.complete? ? ts("Yes") : ts("No") %>
<% if (bookmark_count = @series.bookmarks.is_public.count) > 0 %>
- <%= Bookmark.model_name.human(count: :many) %>:
- <%= link_to_bookmarkable_bookmarks(@series, number_with_delimiter(bookmark_count)) %>
<% end %>
<% if logged_in? %>
<% if @bookmark %>
<%= render "bookmarks/bookmark_form", bookmarkable: @series, bookmark: @bookmark, button_name: ts("Update"), action: :update, in_page: true %>
<% else %>
<%= render "bookmarks/bookmark_form", bookmarkable: @series, bookmark: Bookmark.new, button_name: ts("Create"), action: :create, in_page: true %>
<% end %>
<% end %>
<%= ts("Listing Series") %>
<% unless @works.blank? %>
<%= will_paginate @works %>
<% end %>
<%= render partial: "works/work_blurb", collection: @works, as: :work %>
<% unless @works.blank? %>
<%= will_paginate @works %>
<% end %>