{#
    rich_repr.html
    ~~~~~~~~~~~~~~~~

    Template for the rich representation of docstrings generated by docrepr

    :copyright: Copyright 2013- by the Spyder Development Team.
    :copyright: Copyright 2009 by Tim Dumol <tim@timdumol.com>
    :license: BSD license
#}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="file:///{{css_path}}/bootstrap.css" type="text/css" />
    <link rel="stylesheet" href="file:///{{css_path}}/default.css" type="text/css" />
    <link rel="stylesheet" href="file:///{{css_path}}/pygments.css" type="text/css" />
    <script type="text/javascript" src="file:///{{jquery_path}}/jquery.js"></script>
    <script type="text/javascript" src="file:///{{js_path}}/bootstrap.js"></script>

    {% if math_on %}
    {# DON'T try to load MathJax from the net. It's slow and sometimes gives
       errors. See this thread for more info:
       http://tex.stackexchange.com/questions/2692/comparing-mathjax-and-mathml
    #}
    <script type="text/javascript"
        {% if use_qt4 %}
            src="{{mathjax_path}}/MathJax.js?config=TeX-AMS-MML_SVG-full">
        {% else %}
            src="{{mathjax_path}}/MathJax.js?config=TeX-AMS_HTML">
        {% endif %}
    </script>
    {% endif %}
</head>

<script src="file:///{{js_path}}/utils.js" type="text/javascript" charset="utf-8"></script>
<script src="file:///{{js_path}}/copy_button.js" type="text/javascript" charset="utf-8"></script>


{% if use_qt4 %}
    <script type="text/javascript" charset="utf-8">
        {% include js_path + "/math_config.js" %}
    </script>
{% endif %}

{% if collapse %}
<script src="file:///{{js_path}}/collapse_sections.js" type="text/javascript" charset="utf-8"></script>
{% endif %}

{% if outline %}
<script src="file:///{{js_path}}/move_outline.js" type="text/javascript" charset="utf-8"></script>
{% endif %}

{% if img_path %}
<script type="text/javascript" charset="utf-8">
{% include js_path + "/fix_image_paths.js" %}
</script>
{% endif %}


<body>
    {# Docstring header #}
    {% if name %}
    <div class="title"> <h1> {{name}} </h1> </div>

        {% if argspec or note %}
        <div class="metadata">
            {% if argspec %}
            <p> <b>Definition :</b> <span class="def"> {{name}}{{argspec}} </span> </p>
            {% endif %}
    
            {% if note %}
            <p> <b>Type :</b> {{note}} </p>
            {% endif %}
        </div>
        {% endif %}

    {% endif %}

    {# Docstring contents #}
    <div class="tabs">
        <!-- Nav tabs -->
        <ul id="doc-tabs" class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#main" aria-controls="main" role="tab" data-toggle="tab"><b>Help</b></a></li>

            {% if class_docstring %}
            <li role="presentation"><a href="#class" aria-controls="class" role="tab" data-toggle="tab"><b>Class help</b></a></li>
            {% endif %}

            {% if docs_py_org %}
            <li role="presentation"><a href="#docs-py-org" aria-controls="docs-py-org" role="tab" data-toggle="tab"><b>Web help</b></a></li>
            {% endif %}
        </ul>

        <!-- Tab panes -->
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="main">{{docstring}}</div>

            {% if class_docstring %}
            <div role="tabpanel" class="tab-pane" id="class">{{class_docstring}}</div>
            {% endif %}

            {% if docs_py_org %}
            <div role="tabpanel" class="tab-pane" id="docs-py-org">
                <div class="embed-responsive embed-responsive-4by3">
                    <iframe class="embed-responsive-item" src="{{docs_py_org}}"></iframe>
                </div>
            </div>
            {% endif %}
        </div>
    </div>
</body>

</html>
