Skip to content

Commit

Permalink
Merge pull request #343 from RavirajBaraiya/Documenter_changes
Browse files Browse the repository at this point in the history
Documenter changes issue  #335
  • Loading branch information
sonalgoyal committed Jun 16, 2022
2 parents 57ffae9 + c183766 commit ecb387e
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions core/src/main/resources/model.ftlh
Expand Up @@ -5,31 +5,33 @@
</head>
<body>
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="https://www.zingg.ai">
<a class="navbar-brand" href="https://www.zingg.ai" style="float:left;" >
<img src="https://github.com/zinggai/zingg/raw/main/assets/zinggWhiteTransparent.png" class="d-inline-block align-top" alt="">
</a>
<div class="justify-content-end">Model ${modelId}</div>
<div class="justify-content=flex-end" style="float:right;" >Model ${modelId}</div>
</nav>
<p>
<table class="table table-borderless">


<thead class="thead thead-dark">
<tr>
<th>Cluster</th>
<th class="border-right border-white" style="width: 160px;" >Cluster</th>
<#list 3 ..< numColumns as entityIndex>
<th> <a href="docs/${columns[entityIndex]}.html"> ${columns[entityIndex]!} </a></th>
<th class="border-right border-white" > <a href="docs/${columns[entityIndex]}.html"> ${columns[entityIndex]!} </a></th>
</#list>
</tr>
</thead>

<tbody>

<#list clusters as c>
<tr>
<#if c?is_odd_item>
<td rowspan="2"
<#if c[isMatchColumnIndex] == 0> class="table-danger"
<#if c[isMatchColumnIndex] == 0> class="table-danger" style="border-bottom:1px solid #FF4500; border-right: 1px solid #FF4500 ;"
</#if>
<#if c[isMatchColumnIndex] == 1> class="table-success"
<#if c[isMatchColumnIndex] == 1> class="table-success" style="border-bottom:1px solid #28a745; border-right: 1px solid #28a745 ;"
</#if>
>
${c[clusterColumnIndex]!}
Expand All @@ -40,14 +42,24 @@
<#list 3 ..< numColumns as entityIndex>
<td
<#if c?is_even_item>
<#if c[isMatchColumnIndex] == 0> class="border-bottom bottom-danger"
<#if c[isMatchColumnIndex] == 0> class="border-bottom bottom-danger" style="border-right: 1px solid #FF4500 ;"
</#if>
<#if c[isMatchColumnIndex] == 1> class="border-bottom border-success" style="border-right: 1px solid #28a745 ;"
</#if>
<#if c[isMatchColumnIndex] == 1> class="border-bottom border-success"
<#else>
<#if c[isMatchColumnIndex] == 0> style="border-right: 1px solid #FF4500 ;"
</#if>
<#if c[isMatchColumnIndex] == 1> style="border-right: 1px solid #28a745 ;"
</#if>
</#if>
>
${c[entityIndex]!}
</td>
>
<#if columns[entityIndex]! == "z_score" && c?is_even_item >
<#elseif columns[entityIndex]! == "z_isMatch" && c?is_even_item >
<#else>${c[entityIndex]!}
</#if>


</td>
</#list>
</tr>

Expand All @@ -61,7 +73,10 @@
</html>
<style>
.header{
position:sticky;
position:relative;
top: 0 ;
}.table{
table-layout: fixed;
width: 100%;
}
</style>

0 comments on commit ecb387e

Please sign in to comment.