<!DOCTYPE html>
{% autoescape true %}
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Barres Lab - NeuroSeq</title>

    <!-- [START css] -->
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/bootstrap/css/dashboard.css" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="/css/rnaseq.css">

    <!-- [END css] -->
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">NeuroSeq</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="/">Home</a></li>
            <li><a href="#">Download data</a></li>
            <li><a href="#">Contact</a></li>
            <li><a href="#">Help</a></li>
          </ul>
          <form class="navbar-form navbar-right" action="/search" method="post">
            <input  name="geneNameIn" type="text" class="form-control" placeholder="Gene search..." id="autocomplete_genes2">
          </form>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            {% for imagePath, gene, keyVal, name, metaJson in imgpathKeyJson  %} 
                {% if imagePath == firstPath %} 
                <li id="{{ keyVal }}" class="active navbarClass"  data-key="{{ keyVal }}" data-src="{{ imagePath }}" data-json="{{ metaJson }}"><a  id="navlinks" data-key="{{ keyVal }}">{{ name }}</a></li>
                {% else %}
                    <li id="{{ keyVal }}" class="navbarClass" data-key="{{ keyVal }}" data-src="{{ imagePath }}" data-json="{{ metaJson }}"><a id="navlinks" data-key="{{ keyVal }}">{{ name }}</a></li>
                {% endif %}
            {% endfor %}
          </ul>
         
          Original search:  {{ geneName }} in {{ species }}
          Homologs Found: {% for imagePath, gene, keyVal, metaDict in imgpathKeyDict %} {{ gene }} {% endfor %}
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">{{ geneName }}</h1>
            
          <div class="row placeholders">
            <div class="col-sm-8 placeholder">
                <div id="buttonimage"></div>
            </div>
          </div>

          <h2 class="sub-header" id="datasetHeader"></h2>
          <div>  
            <!-- Nav tabs -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" id="notesTab" class="active navtabClass"><a href="#datasetNotes" aria-controls="datasetNotes" role="tab" data-toggle="tab">About the dataset</a></li>
                <li role="presentation" class="navtabClass"><a href="#citation" aria-controls="citation" role="tab" data-toggle="tab">Citation</a></li>
            </ul>
            
            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane fade in active" id="datasetNotes"></div>
                <div role="tabpanel" class="tab-pane fade" id="citation"></div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="/bootstrap/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <!-- <script src="/bootstrap/js/ie10-viewport-bug-workaround.js"></script> -->
    
    <!-- Custom Script for buttons -->
    <script src="/js/button_image.js"></script>
    
    <!-- Script for autocomplete -->
    <script type="text/javascript" src="/js/jquery.autocomplete.js"></script>
    <script type="text/javascript" src="/js/gene_name_auto.js"></script>
    <script type="text/javascript" src="/js/gene_name_auto_base.js"></script>
  </body>
</html>
{% endautoescape %}
