blob: 573c8c362dfa48557307bb882c5a4f5903193ef2 (
plain)
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
|
<div id="repoman_checks">
<h1>Repoman Checks</h1>
<small>
Last updated on
<%=Time.at(update_timestamp.to_i).strftime('%Y-%m-%d')%>
using a portage snapshot dated
<%=Time.at(portage_timestamp.to_i).strftime('%Y-%m-%d')%>
</small>
</div>
<%=erb :'partials/search', :layout => false%>
<form class="pull-right">
<input type="checkbox" onclick="$('td:contains(\'+amd64\')').parent().toggle();" checked> amd64
<input type="checkbox" onclick="$('td:contains(\'+~amd64\')').parent().toggle();" checked> ~amd64
</form>
<table id="sortable" class="table table-bordered table-condensed">
<thead>
<tr>
<th class="width-52">Package</th>
<th class="width-14">Date</th>
<th class="width-17">Result</th>
<th class="width-17">History</th>
</tr>
</thead>
<tbody class="searchable">
<%repomans.each do |repoman|%>
<%next if repoman.nil?%>
<tr>
<td class="width-52">
<%=repoman.package[:identifier]%>
</td>
<td class="width-14">
<%=Time.at(repoman[:timestamp].to_i).strftime('%Y-%m-%d')%>
</td>
<td class="width-17 <%=repoman[:result]%>">
<a href="/repoman_checks/<%=repoman.package[:sha1]%>/<%=repoman[:timestamp]%>"><%=repoman[:result].camelcase%></a>
</td>
<td class="width-17">
<a href="/repoman_checks/<%=repoman.package[:sha1]%>"><%=repoman.package.repoman_dataset.where(target: 'current').count%> Check(s)</a>
</td>
<td style="display:none;">
+<%=repoman.package[:amd64_keyword]%>
</td>
</tr>
<%end%>
</tbody>
</table>
|