blob: 225bced85f183b8054f5b44e2a7ffca7a67b385d [file] [log] [blame]
<style>
<!--
* { font-size: 9pt; font-family: verdana, helvetica, arial, sans-serif; line-height: 1.7em; }
p { margin: 0 }
-->
</style>
<%= ::MSG_EMAIL_SERVER_GENERATED %><br>
<br>
<br>
<h2><%= @subject %></h2>
<h3>Wiki Sites</h3>
<table width=100% border=1>
<tr>
<th>Site</th><th>Baseline</th><th> New Versions</th><th>New Comments</th><th>Checkouts</th><th></th>
</tr>
<% for site in @sites %>
<tr>
<td><a href="http://<%= host + '/' + site.rel_path %>"><%= site.title %></a></td>
<td><%= site.baseline.baseline %></td>
<td align="middle"><%= site.versions_count_since(@starttime).to_s %> (from <%= site.versions_count_excluding_baseversions.to_s %>)</td>
<td align="middle"><%= site.comments_count_since(@starttime).to_s %> (from <%= site.comments_count.to_s %>)</td>
<td align="middle"> <%= site.checkouts.count.to_s %></td>
<td align="middle"><%= "<font color='red'>New!</color>" if (site.created_on > @starttime) %></td>
</tr>
<% end %>
</table>
<% if @versions.length > 0 %>
<h3>New Versions</h3>
<table width=100% border=1>
<tr>
<th align="left">Page</th><th>Version</th><th>Note</th><th>Site</th><th>Created</th>
</tr>
<% for version in @versions %>
<tr>
<% site = version.site %>
<% page = version.page %>
<td><a href="http://<%= host + '/' + site.rel_path + page.rel_path %>"><%= version.page.presentation_name %></a></td>
<td>Version <%= version.version.to_s %></a></td>
<td><%= version.note %></td>
<td><%= site.title %></td>
<td><%= ago_txt(version.created_on) %> ago by <%= version.user.name %></td>
</tr>
<% end %>
</table>
<% end %>
<% if @comments.length > 0 %>
<h3>New Comments</h3>
<table width=100% border=1>
<tr>
<th align="left">Comment</th><th>Page</th><th>Site</th><th>Created</th>
</tr>
<% for comment in @comments %>
<tr>
<% site = comment.site %>
<% page = comment.page %>
<td><%= truncate(strip_tags(comment.text)) %></td>
<td><a href="<%= host + '/' + site.rooturl + page.rel_path %>"><%= page.presentation_name %></a></td>
<td><%= site.title %></td>
<td><%= ago_txt(comment.created_on) %> ago by <%= comment.user.name %></td>
</tr>
<% end %>
</table>
<% end %>
<% if @users.length > 0 %>
<h3>New Users</h3>
<p>
<%= (@users.collect {|user| user.name}).join(", ") %>
</p>
</ul>
<% end %>
<% if @checkouts.length > 0 %>
<h3>Checkouts</h3>
<table width=100% border=1>
<tr>
<th align="left">Page</th><th>Version</th><th>Site</th><th>Created</th>
</tr>
<% for checkout in @checkouts %>
<tr>
<% site = checkout.site %>
<% page = checkout.page %>
<td><a href="<%= host + '/' + site.rooturl + page.rel_path %>"><%= page.presentation_name %></a></td>
<td>Version <%= checkout.version.version.to_s %></td>
<td><%= site.title %></td>
<td><%= ago_txt(checkout.created_on) %> ago by <%= checkout.user.name %></td>
</tr>
<% end %>
</table>
<% end %>
<br>
<br>
<p>Generated on: <strong><%= @runtime.to_s %></strong><br>
Showing changes since: <strong><%= @starttime.to_s %></strong></p>
<br><br><br>
If you have questions regarding <%= ENV['EPFWIKI_APP_NAME'] %> or this e-mail, please contact <a href="mailto:<%= @admin.email %>"><%= @admin.name %></a>