first version of cleaning up the site view #514

This commit is contained in:
soulgalore 2014-11-30 22:57:51 +01:00
parent 10a2d1e02b
commit d19c65dc1c
3 changed files with 51 additions and 35 deletions

View File

@ -0,0 +1,30 @@
<div class="table-responsive">
<table class="table table-hover table-condensed table-striped table-bordered" id="sitesTable">
<thead>
<tr>
<th data-sort="string">
<a rel="tooltip" data-placement="top" data-html="false" href="#" data-original-title="The start URL of the site that has been tested">site</a>
</th>
{{#each columns}}
<th data-sort="float">
<a rel="tooltip" data-placement="top" data-html="false" href="#" data-original-title="{{getColumnsMeta this ../columnsMeta ../ruleDictionary 'desc'}}">
{{getColumnsMeta this ../columnsMeta ../ruleDictionary 'title'}}
</a>
</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each sitesAndAggregates}}
<tr>
<td>
<a href="{{getHostname this.site}}/index.html">{{this.site}}</a>
</td>
{{#each aggregates}}
<td data-sort-value="{{#if stats.median}}{{stats.median}}{{else}}-1{{/if}}">{{getHumanReadable this stats.median true}}</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
</div>

View File

@ -0,0 +1,17 @@
Score:
<ol>
{{#each highestScore}}
<li><strong>{{getHostname this.site}} <small> - {{this.stats}} {{this.diff}}%</small></strong> </li>
{{/each}}
</ol>
Fastest:
<ol>
{{#each fastestSites}}
<li><strong>{{getHostname this.site}} <small> - {{this.stats}} {{this.diff}}%</small></strong> </li>
{{/each}}
</ol>

View File

@ -2,41 +2,10 @@
<html lang="en">
{{> header}}
<div class="row">
<div class="col-lg-12">
{{> runSummary}}
<div class="table-responsive">
<table class="table table-hover table-condensed table-striped table-bordered" id="sitesTable">
<thead>
<tr>
<th data-sort="string">
<a rel="tooltip" data-placement="top" data-html="false" href="#" data-original-title="The start URL of the site that has been tested">site</a>
</th>
{{#each columns}}
<th data-sort="float">
<a rel="tooltip" data-placement="top" data-html="false" href="#" data-original-title="{{getColumnsMeta this ../columnsMeta ../ruleDictionary 'desc'}}">
{{getColumnsMeta this ../columnsMeta ../ruleDictionary 'title'}}
</a>
</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each sitesAndAggregates}}
<tr>
<td>
<a href="{{getHostname this.site}}/index.html">{{this.site}}</a>
</td>
{{#each aggregates}}
<td data-sort-value="{{#if stats.median}}{{stats.median}}{{else}}-1{{/if}}">{{getHumanReadable this stats.median true}}</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
</div>
<div class="col-lg-12">
{{> runSummary}}
<!--{{> sitesWinner}}-->
{{> sitesTable}}
</div>
</div>
{{> footer}}