<commit_before><%
	page_title       "Mailing status"
	page_description "Status of all mailings"
%>

<style type="text/css" media="screen">
	.warning { color: #b00; }
</style>

<% sidebar do %>
	<%= render :partial => 'sidebar' %>
<% end %>

<table class="list mailing_list">
	<tr>
		<th>To</th>
		<th>From</th>
		<th>Subject</th>
		<th>Sent</th>
		<th>Status</th>
	</tr>
	<% if @pending && @pending.length > 0 %>
		<% @pending.each do |m| %><tr>
			<td><%= h(m.recipients) %></td>
			<td><%= h(m.sender) %></td>
			<td><%= h(m.subject) %></td>
			<td><%= formatted_time m.created_at %></td>
			<td><em>Pending</em></td>
		</tr><% end %>
	<% end %>
	<% if @failed && @failed.length > 0 %>
		<% @failed.each do |m| %><tr>
			<td><%= h(m.recipients) %></td>
			<td><%= h(m.sender) %></td>
			<td><%= h(m.subject) %></td>
			<td><%= formatted_time m.created_at %></td>
			<td><strong class="warning">Failed</strong></td>
		</tr><% end %>
	<% end %>
</table><commit_msg>nrf: Newsletter module fix<commit_after><%
	page_title       "Mailing status"
	page_description "Status of all mailings"
%>

<style type="text/css" media="screen">
	.warning { color: #b00; }
</style>

<% sidebar do %>
	<%= render :partial => 'sidebar' %>
<% end %>

<table class="list mailing_list">
	<tr>
		<th>To</th>
		<th>From</th>
		<th>Subject</th>
		<th>Sent</th>
		<th>Status</th>
	</tr>
	<% if @pending && @pending.length > 0 %>
		<% @pending.each do |m| %><tr>
			<td><%= h(m.recipients) %></td>
			<td><%= h(m.sender) %></td>
			<td><%= h(m.subject) %></td>
			<td><%= smart_time m.created_at %></td>
			<td><em>Pending</em></td>
		</tr><% end %>
	<% end %>
	<% if @failed && @failed.length > 0 %>
		<% @failed.each do |m| %><tr>
			<td><%= h(m.recipients) %></td>
			<td><%= h(m.sender) %></td>
			<td><%= h(m.subject) %></td>
			<td><%= smart_time m.created_at %></td>
			<td><strong class="warning">Failed</strong></td>
		</tr><% end %>
	<% end %>
</table>
{'fraction_non_alphanumeric': 0.27958656330749354, 'fraction_numerical': 0.004134366925064599, 'mean_word_length': 3.5233644859813085, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3094686', 'n_tokens_mistral': 940, 'n_tokens_neox': 815, 'n_words': 170}