<!DOCTYPE html>

<html>

<head>
    {% load static %}
    {% load static %}
    {% get_static_prefix as STATIC_PREFIX %}

    <script type="text/javascript" src="{% static 'js/tableExport.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/jquery.base64.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/jquery.tablesorter.js' %}"></script>
    <!--<script type="text/javascript" src="{% static 'js/jquery-1.11.2.min.js' %}"></script>-->
    <script type="text/javascript" src="{% static 'js/sorttable.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/excellentexport.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/jquery.chained.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>

    <script type="text/javascript" src="{% static 'js/jvenn.min.js' %}"></script>
    <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.css' %}" />
    <link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>

    <script type="text/javascript" src="{% static 'js/bootstrap-switch.js' %}"></script>
    <link rel="stylesheet" type="text/css" href="{% static 'css/toggle-switch.css' %}" />

</head>

<body>
    {% if not no_tree %}
    <h3>Phylogeny:</h3>
    <div id="pfam_tree_div">
        <object type="image/svg+xml" data="{% static asset_path %}" id="cog_tree"></object>
    </div>
    <div  id="pfam_table_div">
        <h3>COGs:</h3>


        <table class="sortable">
            <thead>
            <tr>
                <th>COG id</th>
                <th>Description</th>
            </tr>
            </thead>
            <tbody>
            {% for values in cog_annotation %}
            <tr>
                <td><a href="{% url 'fam' values.0 'cog' %}" target="_top">{{values.0}}</a></td>
                <td>{{values.2}} ({{values.1}})</td>
            </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
    {% else %}
    No tree for {{orthogroup}}
    {% endif %}
</body>
</html>
