blob: 30a0a1762da2cc15cd95d9cf0ddf7922dbaa08a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<h1 class="first-header">Gentoo Archives: <%= list %></h1>
<% if params[:no_messages] %>
<div class="alert alert-warning">
There are no messages in the archive for the requested month.
</div>
<% end %>
<table class="table">
<tr>
<th>Month</th>
<th>Number of messages</th>
</tr>
<% results['aggregations']['messages_by_month']['buckets'].each do |month| %>
<% next if month['key'].to_i > current_monthint and not params[:allmonths] %>
<tr>
<td><%= monthint_to_link(month['key'].to_s) %></td>
<td><%= month['doc_count'] %></td>
</tr>
<% end %>
</table>
|