-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add distribution list and individual reports
Lots of work to do here: * Allow filtering the distribution list by grade, lang version, platform, and tester. * Only show the latest N versions with a button for more * Paginate the report list using Moai But it's a start!
- Loading branch information
Showing
5 changed files
with
152 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
% my $dist = stash( 'dist' ) . ' (' . stash( 'version' ) . ')'; | ||
% title $dist; | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h1><%= stash 'dist' %></h1> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-3"> | ||
<h2>Releases</h2> | ||
|
||
<div class="list-group"> | ||
% for my $r ( @$releases ) { | ||
<a href="<%= url_with { version => $r->version } %>" class="list-group-item <%= stash( 'version' ) == 1.000001 || stash( 'version' ) eq 'latest' ? "active" : "" %>"> | ||
<%= $r->version %> | ||
<span class="pull-right"> | ||
<span class="label label-success"><%= $r->pass %></span> | ||
<span class="label label-danger"><%= $r->fail %></span> | ||
</span> | ||
</a> | ||
% } | ||
</div> | ||
|
||
</div> | ||
<div class="col-md-9"> | ||
<h2>Reports (<%= stash 'version' %>)</h2> | ||
|
||
<%= include 'moai/table', | ||
items => $reports, | ||
columns => [ | ||
{ title => '', key => 'guid', link_to => 'reports.report' }, | ||
{ title => 'Grade', key => 'grade' }, | ||
{ title => 'Language', key => 'lang_version' }, | ||
{ title => 'Platform', key => 'platform' }, | ||
{ title => 'Tester', key => 'tester_name' }, | ||
], | ||
classes => { | ||
table => 'table-striped table-hover', | ||
}, | ||
%> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
<% title sprintf 'Report - %s v%s %s %s', | ||
$report->dist_name, $report->dist_version, $report->lang_version, | ||
$report->platform, | ||
; | ||
%> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<h1><%= | ||
sprintf '%s v%s %s %s', | ||
$report->dist_name, $report->dist_version, $report->lang_version, | ||
$report->platform, | ||
; | ||
%></h1> | ||
|
||
<dl class="dl-horizontal"> | ||
<dt>Status</dt> | ||
<dd><%= ucfirst $report->grade %></dd> | ||
<dt>From</dt> | ||
<dd><%= $report->tester_name %></dd> | ||
<dt>Dist</dt> | ||
<dd><%= link_to 'reports.dist', { dist => $report->dist_name, version => $report->dist_version }, begin %> | ||
<%= $report->dist_name %> v<%= $report->dist_version %> | ||
<% end %></dd> | ||
<dt>Platform</dt> | ||
<dd><%= join ' ', $report->lang_version, $report->platform %></dd> | ||
<dt>Date</dt> | ||
<dd><%= $report->created->datetime( ' ' ) %></dd> | ||
<dt>ID</dt> | ||
<dd><%= $report->id %></dd> | ||
</dl> | ||
|
||
<pre><%= $report->text %></pre> | ||
|
||
</div> | ||
</div> | ||
|