14 lines
730 B
Plaintext
14 lines
730 B
Plaintext
<% define_content :link do %>
|
|
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.base_ar_class.to_s.downcase.pluralize %>/<%= asset.context_id %>/announcements
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= before_label asset.title %> <%= asset.context.name %>
|
|
<% end %>
|
|
|
|
<%= strip_and_truncate(asset.message, :max_length => 500) %>
|
|
<% if asset.attachment %><%= before_label :file_included, "File Included" %> <%= asset.attachment.display_name %> - <%= asset.attachment.readable_size %>
|
|
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.base_ar_class.to_s.downcase.pluralize %>/<%= asset.context_id %>/files/<%= asset.attachment_id %>/download<% end %>
|
|
|
|
<%= content :link %>
|