% # expects "work" %>
<%= render "works/work_module", work: work %>
<% if is_author_of?(work) %>
<%= ts("Author Actions") %>
- <%= link_to ts("Edit"), edit_work_path(work) %>
- <%= link_to ts("Edit Tags"), edit_tags_work_path(work) %>
<% if work.is_wip %>
- <%= link_to ts("Add Chapter"), new_work_chapter_path(work) %>
<% end %>
<% if !work.posted? %>
-
<%= link_to ts("Post Draft"), post_draft_work_path(work), method: :put %>
-
<%= link_to ts("Delete Draft"), confirm_delete_work_path(work), data: { confirm: ts("Are you sure you want to delete this draft?") } %>
<% end %>
<% end %>