forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathannouncement_reply.email.html.erb
58 lines (52 loc) · 2.1 KB
/
announcement_reply.email.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<% define_content :link do %>
<%= polymorphic_url([asset.context, :discussion_topic], id: asset.discussion_topic_id, anchor: "entry-#{asset.id}") %>
<% end %>
<% define_content :subject do %>
<%= t :subject, "New Comment on Announcement %{discussion_topic}: %{course}", :discussion_topic => asset.title, :course => asset.context.name %>
<% end %>
<% define_content :footer_link do %>
<a href="<%= content(:link) %>">
<%= t :link, "Click here to join view the announcement" %>
</a>
<% end %>
<p><%= t :body, "%{user} posted a new comment on the announcement: %{discussion_topic} for %{course}:", :user => asset.user.short_name, :discussion_topic => asset.title, :course => asset.context.name %></p>
<p>
<%= html_to_simple_html(asset.message, :base_url => dashboard_url) %>
</p>
<% if avatar_enabled? %>
<table border="0" style="border-collapse: collapse">
<tr height="30px">
<td></td>
</tr>
<tr >
<td align="left" width="50" style="width: 50px"><img style="border-radius: 50px; height: 50px; width: 50px;" height="50" width="50" src="<%=author_avatar_url%>" alt="<%=author_short_name%>"> </td>
<td width="10"></td>
<td>
<table border="0" style="font-size: 14px; color: #444444; background-color: #ffffff; font-family: 'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif';" valign="top" align="left">
<tr>
<td valign="bottom" align="left">
<b><%= author_short_name%></b>
</td>
</tr>
<tr>
<td valign="top" align="left">
<a href="mailto:<%= author_email_address %>">
<%= author_email_address%>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<% else %>
<p height="30px"></p>
<p>
<b><%= author_short_name%></b>
<br/>
<a href="mailto:<%= author_email_address %>">
<%= author_email_address%>
</a>
</p>
<% end %>
<p><%= t :discussion_entry_reply_message, "Join the conversation using the link below, or comment by replying to this message." %></p>