FogBugz #135: Prepare the Mail-Output for the 2day / 7day birthday reminders.
This commit is contained in:
parent
60f1368c1e
commit
7ed4c0bf6f
3 changed files with 42 additions and 3 deletions
|
|
@ -0,0 +1,32 @@
|
|||
<% unless (@birthday_contacts_2days.blank? && @birthday_contacts_7days.blank?) %>
|
||||
<table width="95%" border="0" cellspacing="0" cellpadding="25">
|
||||
<tr>
|
||||
<th bgcolor="#ed8200" width="100%">
|
||||
<span style="color: #fff">Contact</span><span style="color: #fddfbf">-o-Rama:</span> <span style="color: #fff">anstehende Geburtstage</span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
<% unless @birthday_contacts_2days.blank? %>
|
||||
<h2>Übermorgen, <%= (Date.today + 2).to_s %>:
|
||||
<ul>
|
||||
<% @birthday_contacts_2days.each do |c| %>
|
||||
<li><%= c.firstname %> <%= c.lastname %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% unless @birthday_contacts_7days.blank? %>
|
||||
<h2>In einer Woche, also am <%= (Date.today + 7).to_s %>:
|
||||
<ul>
|
||||
<% @birthday_contacts_7days.each do |c| %>
|
||||
<li><%= c.firstname %> <%= c.lastname %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% unless @birthday_contacts_2days.blank? && @birthday_contacts_7days.blank? %>
|
||||
<hr>
|
||||
<p>Passende Kontaktdaten gibt's vielleicht bei <a href="http://ocontact-o-rama.de">Contact-o-Rama</a>.</p>
|
||||
</table>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue