diff options
Diffstat (limited to 'web/views/build_status.erb')
-rw-r--r-- | web/views/build_status.erb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/web/views/build_status.erb b/web/views/build_status.erb new file mode 100644 index 0000000..ede45cc --- /dev/null +++ b/web/views/build_status.erb @@ -0,0 +1,49 @@ +<div id="build_status"> + <h1>Build Status (CI)</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"> + <%builds.each do |build|%> + <%next if build.nil?%> + <tr> + <td class="width-52"> + <%=build.package[:identifier]%> + </td> + <td class="width-14"> + <%=Time.at(build[:timestamp].to_i).strftime('%Y-%m-%d')%> + </td> + <td class="width-17 <%=build[:result]%>"> + <a href="/build_status/<%=build.package[:sha1]%>/<%=build[:timestamp]%>"><%=build[:result].camelcase%></a> + </td> + <td class="width-17"> + <a href="/build_status/<%=build.package[:sha1]%>"><%=build.package.build_dataset.where(target: 'current').count%> Build(s)</a> + </td> + <td style="display:none;"> + +<%=build.package[:amd64_keyword]%> + </td> + </tr> + <%end%> + </tbody> +</table> |