17 lines
662 B
Plaintext
17 lines
662 B
Plaintext
<% define_content :link do %>
|
|
<% link = if asset.is_a? WebZipExport %>
|
|
<% course_offline_web_exports_url(asset.course) %>
|
|
<% elsif asset.is_a? EpubExport %>
|
|
<% epub_exports_url %>
|
|
<% else %>
|
|
<% polymorphic_url([asset.context, :content_exports]) %>
|
|
<% end %>
|
|
<%= link %>
|
|
<% end %>
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "Course Export Finished: %{course}", :course => asset.context.name %>
|
|
<% end %>
|
|
<p><%= t :body2, %{Your course export for *%{course}* has finished.}, :course => asset.context.name, :wrapper => '<em>\1</em>' %></p>
|
|
|
|
<p><a href="<%= content :link %>"><%= t :link, "Click to view exports" %></a></p>
|