%# Note that this file is not a valid *.html file!
%# It is intended to be a bottlepy - style template
%# used for the scripting part of TheOnionBox!

<%
    tor = get('tor') if tor is None else tor
    oo_weights = get('oo_weights') if oo_weights is None else oo_weights
    # oo_show = get('oo_show')
%>

% if oo_weights.has_data():

    {{!group_row('Weights')}}

    % publ = oo_weights.published()
    % if publ is not None:
        {{!standard_row('Status Time', publ)}}
    % end

    <div class="row">
        <div class="{{box_datum_grid}}">History Charts</div>
        <div class="{{box_value_grid}} box_value_margin">
            <div class="btn-toolbar pull-left" role="group">
                <div class="btn-group btn-group-toggle" data-toggle="buttons" id="consensus_charts">
                    <!-- labels for consensus charts will be inserted here -->
                </div>
            </div>
        </div>
        <div class="{{box_right_grid}}"></div>
    </div>
    <div class="row">
        <div class="{{box_datum_grid}}">Consensus Weight</div>
        <div class="{{box_value_grid}} box_value_margin">
            <canvas class="bw_chart box_canvas" id="chart-cw" width="300" height="150" style="vertical-align: middle"></canvas>
        </div>
        <div class="{{box_right_grid}}"></div>
    </div>
    <div class="row">
        <div class="{{box_datum_grid}}"></div>
        <div class="{{box_value_grid}} box_value_margin">
            <div id="network_consensus_weight">
                %# <!-- Current Consensus Weight: xxx -->
            </div>
        </div>
        <div class="{{box_right_grid}}"></div>
    </div>
    <div class="row">
        <div class="{{box_datum_grid}}">Probabilities</div>
        <div class="{{box_value_grid}} box_value_margin">
            <canvas class="bw_chart box_canvas" id="chart-cwf" width="300" height="150" style="vertical-align: middle"></canvas>
        </div>
        <div class="{{box_right_grid}}"></div>
    </div>
    <div class="row">
        <div class="{{box_datum_grid}}"></div>
        <div class="{{box_value_grid}} box_value_margin">
            <div id="network_probabilities">
                %# <!-- Fractions & Probabilities: xxx -->
            </div>
        </div>
        <div class="{{box_right_grid}}"></div>
    </div>

% end

