content_export_failed.email.mustache 715 B

1234567891011121314151617181920212223
  1. <% define_content :link do %>
  2. <% link = if asset.is_a? WebZipExport %>
  3. <% course_offline_web_exports_path(asset.course) %>
  4. <% elsif asset.is_a? EpubExport %>
  5. <% epub_exports_url %>
  6. <% else %>
  7. <% polymorphic_url([asset.context, :content_exports]) %>
  8. <% end %>
  9. <%= link %>
  10. <% end %>
  11. <% define_content :subject do %>
  12. <%= t :subject, "Course Export Failed: %{course}", :course => asset.context.name %>
  13. <% end %>
  14. <%= t :body, <<-BODY, :course => asset.context.name, :id => %{"#{asset.class}:#{asset.id}"}
  15. There was a problem exporting the course "%{course}".
  16. Please notify your system administrator, and give them the following export identifier: %{id}.
  17. BODY
  18. %>
  19. <%= content :link %>