{% extends "tab-child.html" %}

{% block head %}
<script src="./dist/vendor.bundle.js" charset="utf-8"></script>
<style media="screen">
  .table > thead > tr > th{
    border-right: 1px solid #ddd;
    border-bottom:0;
  }

  .table > tbody > tr > td{
    border-right: 1px solid #ddd;
  }

  .table > thead > tr > th:last-of-type {
    border-right: 0px;
  }

  .table > tbody > tr > td:last-of-type {
    border-right: 0px;
  }

  .panel-body {
    padding: 0;
  }

  .panel-body > .table{
    margin-bottom:0px;
  }
</style>
{% endblock %}

{% block content %}
{% if dangers %}
  <div class="row">
  {% for danger in dangers %}
    <div class="alert alert-danger">
      <strong>Danger:</strong> {{ danger }}
    </div>
  {% endfor %}
  </div>
{% endif %}
{% if warnings %}
  <div class="row">
  {% for warning in warnings %}
    <div class="alert alert-warning">
      <strong>Warning:</strong> {{ warning }}
    </div>
  {% endfor %}
  </div>
{% endif %}
<div class="row">
  <div class="col-xs-12 text-center">
    <p>
      Click and drag on plot to zoom in. Double click to zoom back out to full size.
      Hover over a box to see the parametric seven-number summary of the quality scores at the corresponding position.
    </p>
  </div>
  {% if length_tables.forward %}
  <div id="forwardContainer" class="col-xs-12 col-md-6">
    <h5 class="text-center">Forward Reads</h5>
  </div>
  {% else %}
  <div id="forwardContainer" class="col-xs-12 col-md-6">
    <h5 class="text-center">No Forward Reads</h5>
  </div>
  {% endif %}
  {% if length_tables.reverse %}
  <div id="reverseContainer" class="col-xs-12 col-md-6">
    <h5 class="text-center">Reverse Reads</h5>
  </div>
  {% else %}
  <div id="reverseContainer" class="col-xs-12 col-md-6">
    <h5 class="text-center">No Reverse Reads</h5>
  </div>
  {% endif %}


</div>

<div class="row">
  <div class="col-lg-6 col-lg-offset-3">
      <h1>Demultiplexed sequence length summary</h1>
      {% if length_tables.forward %}
      <div class="col-lg-6">
          <h4>Forward Reads</h4>
          {{ length_tables.forward }}
      </div>
      {% else %}
      <div class="col-lg-6">
          <h4> No Forward Reads</h4>
      </div>
      {% endif %}
      {% if length_tables.reverse %}
      <div class="col-lg-6">
          <h4>Reverse Reads</h4>
          {{ length_tables.reverse }}
      </div>
      {% else %}
      <div class="col-lg-6">
          <h4> No Reverse Reads</h4>
      </div>
      {% endif %}
  </div>
</div>

<script src="./dist/bundle.js" charset="utf-8"></script>
<script src="./data.jsonp" charset="utf-8"></script>
{% endblock %}
