Skip to content

Commit

Permalink
fix/imrpove table results
Browse files Browse the repository at this point in the history
  • Loading branch information
evlach committed Aug 9, 2014
1 parent efe616a commit 3b2693f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,16 @@ <h1>Test Results for <%=params.type%> <%=params.typeValue%>, <%=params.ua%> <%=p
return url;
}
};

function dataToUrl(resData,params){
var url = "type/" + params.type + "/typevalue/" + params.typeValue;
url = url + "/ua/" + (resData.uaProduct.name || "null");
url = url + "/uaver/" + (resData.uaProduct.version || "null");
url = url + "/at/" + (resData.atProduct.name || "null");
url = url + "/atver/" + (resData.atProduct.version || "null");
// url = url + "/filter/" + encodeURI(JSON.stringify(params.filter));
return url;
}
%>
<% firstrow = true %>
<% _.each(results.rows, function(row) {
Expand Down Expand Up @@ -396,9 +406,10 @@ <h1>Test Results for <%=params.type%> <%=params.typeValue%>, <%=params.ua%> <%=p
}
else {
if(parseInt(col.noOfAll)>0){

%>
<td><span class="chart"><%=col.noOfPass %>/<%=col.noOfAll %></span>
<a title="show test results of this combination" href="#/results-details.html/<%=accessdb.p.toUrl() %>" class="TestResultFullViewTechniqueAnchor"><%=col.noOfPass %>/<%=col.noOfAll %></a>
<a title="show test results of this combination <%=col.resData.uaProduct.name %>" href="#/results-details.html/<%=dataToUrl(col.resData,params) %>" class="TestResultFullViewTechniqueAnchor"><%=col.noOfPass %>/<%=col.noOfAll %></a>
</td>
<%
} else { %>
Expand Down

0 comments on commit 3b2693f

Please sign in to comment.