diff options
Diffstat (limited to 'web/views/repoman')
-rw-r--r-- | web/views/repoman/repoman_checks.erb | 45 | ||||
-rw-r--r-- | web/views/repoman/repoman_history.erb | 20 | ||||
-rw-r--r-- | web/views/repoman/repoman_logs.erb | 16 |
3 files changed, 81 insertions, 0 deletions
diff --git a/web/views/repoman/repoman_checks.erb b/web/views/repoman/repoman_checks.erb new file mode 100644 index 0000000..a8ffc34 --- /dev/null +++ b/web/views/repoman/repoman_checks.erb @@ -0,0 +1,45 @@ +<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> + +<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> + <%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_logs/<%=repoman.package[:sha1]%>/<%=repoman[:timestamp]%>"><%=repoman[:result].camelcase%></a> + </td> + <td class="width-17"> + <a href="/repoman_history/<%=repoman.package[:sha1]%>"><%=repoman.package.repoman_dataset.where(target: 'current').count%> Checks(s)</a> + </td> + <td style="display:none;"> + +<%=repoman.package[:amd64_keyword]%> + </td> + </tr> + <%end%> +</table> diff --git a/web/views/repoman/repoman_history.erb b/web/views/repoman/repoman_history.erb new file mode 100644 index 0000000..bc26cd8 --- /dev/null +++ b/web/views/repoman/repoman_history.erb @@ -0,0 +1,20 @@ +<h1 class="text-center"><%=repomans.first.package[:identifier]%></h1> + +<table id="sortable" class="table table-bordered table-condensed"> + <thead> + <tr> + <th class="width-50">Check Date</th> + <th class="width-5o">Check Result</th> + </tr> + </thead> + <%repomans.each do |repoman|%> + <tr> + <td class="width-50"> + <%=Time.at(repoman[:timestamp].to_i).strftime('%Y-%m-%d')%> + </td> + <td class="width-50 <%=repoman[:result]%>"> + <a href="/repoman_logs/<%=repoman.package[:sha1]%>/<%=repoman[:timestamp]%>"><%=repoman[:result].camelcase%></a> + </td> + </tr> + <%end%> +</table> diff --git a/web/views/repoman/repoman_logs.erb b/web/views/repoman/repoman_logs.erb new file mode 100644 index 0000000..52faecc --- /dev/null +++ b/web/views/repoman/repoman_logs.erb @@ -0,0 +1,16 @@ +<div class="text-center"> + <h1><%=package[:identifier]%></h1> + <h3><%=Time.at(repoman[:timestamp].to_i).strftime('%Y-%m-%d')%></h3> +</div> +<br> + +<%unless repoman[:log].nil?%> +<div class="panel panel-default"> + <div class="panel-heading"> + <h4><a name="current_log">Repoman Full</a></h4> + </div> + <div class="panel-body"> + <pre><%=repoman[:log]%></pre> + </div> +</div> +<%end%> |