
<div id="content"> 

<br>
					<p class="page-title"><b>
					Homologs in  {{og}} {{og_id|safe}}
				   </p></b></center>
	   

	<div class="container-fluid">
		<div class="col-lg-12">
			<div style="padding-top:20px">


				   
				<div class="panel panel-success" style="width:100%; top: 200px">
					<div class="panel-heading" style="width:100%">

							<h3 class="panel-title">Help</h3>
						</div>
						<p style="margin: 10px 10px 10px 10px">
						{{homologues|length}} homologs were identified in {{n_genomes}} with <a href="https://github.com/davidemms/OrthoFinder">OrthoFinder</a>.

						<br> The following table displays the locus tag of each homolog, the organism to which it belongs, the gene name and product.
					
				</div>
			</div>

			<div class="row">
				<table class="display" id="homologs"> <!--  class="sortable" -->
					<thead>
						<tr>
							{% for entry in headers %}
							<th> {{entry}}  </th>
							{% endfor %}
						</tr>
					</thead>
					<tbody>
						{% for values in homologues %}
						<tr>
						{% for entry in values %}
						<td> {{entry|safe}}</td>
						{% endfor %}
						</tr>

						{% endfor %}
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<script>

$(document).ready(function() {
  $('#homologs').DataTable( {
    dom: 'lBfrtip',
    buttons: [
        {
            extend: 'colvis',
            columns: ':not(.noVis)',
        },
        {
            extend: 'excel',
            title: 'homologs_{{orthogroup}}'
        },
        {
            extend: 'csv',
            title: 'homologs_{{orthogroup}}'
        }
    ],
  "paging":   true,
  "ordering": true,
  "info":     false
  });
});

</script>
