<% content_for :message do %>

<%= t("mailer.general.greeting.informal.addressed_html", name: style_bold(@user.login)) %>

<% if @collection %> <%= t(".collection.html", collection_link: style_link(@collection.title, collection_url(@collection))) %> <% else %> <%= t(".no_collection") %> <% end %>

<% url = @collection ? collection_work_url(@collection, @work) : work_url(@work) %> <%= creation_link_with_word_count(@work, url) %>
by <%= creator_links(@work) %>

<%= render "work_info", work: @work %> <% if @collection && !@collection.gift_notification.blank? %>

<%= @collection.gift_notification %>

<% end %> <% end %>