otwarchive-symphonyarchive/app/views/user_mailer/creatorship_notification_archivist.html.erb

28 lines
1.5 KiB
Text
Raw Normal View History

2026-03-11 22:22:11 +00:00
<% creation_type = @creation.class.name.underscore %>
<% content_for :message do %>
<p>
<%# i18n-tasks-use t('user_mailer.creatorship_notification_archivist.intro_chapter')
i18n-tasks-use t('user_mailer.creatorship_notification_archivist.intro_series')
i18n-tasks-use t('user_mailer.creatorship_notification_archivist.intro_work')-%>
<%= t(".intro_#{creation_type}", archivist: @archivist.login, pseud: @creatorship.pseud.name) %>
</p>
<p>
<%= t(".html.creation",
creation_link: "<i><b>#{style_link(creation_title(@creation), polymorphic_url(@creation))}</b></i>".html_safe,
pseud_links: @creation.pseuds.map{ |p| style_pseud_link(p) }.to_sentence.html_safe).html_safe %>
</p>
<p><%= t(".explanation") %></p>
<p>
<%# i18n-tasks-use t('user_mailer.creatorship_notification_archivist.html.remove_chapter')
i18n-tasks-use t('user_mailer.creatorship_notification_archivist.html.remove_series')
i18n-tasks-use t('user_mailer.creatorship_notification_archivist.html.remove_work')
i18n-tasks-use t('user_mailer.creatorship_notification_archivist.html.edit_chapter')
i18n-tasks-use t('user_mailer.creatorship_notification_archivist.html.edit_series')
i18n-tasks-use t('user_mailer.creatorship_notification_archivist.html.edit_work')-%>
<%= t(".html.remove_#{creation_type}", "edit_#{creation_type}_link": style_link(t(".html.edit_#{creation_type}"), edit_polymorphic_url(@creation))).html_safe %>
</p>
<% end %>