{% extends "cone_base.html" %}
{% block title %}API info{% endblock %}
{% block content %}
    <h1>Configuration API info</h1><br>

    <table class="report" id="report_data">
    <tr>
        <th class="featureName">File</th>
        {% for item in data.api_data.columns %}
        <th class="featureName">{{ data.api_data.columns[item] }}</th>
        {% endfor %}
    </tr>
    {% for row in data.api_data.data %}
    {% if row['type'] != '' %}
    <tr>
        <td><a href="file://{{row['file']}}">{{row['file']}}</a></td>
        {% for colname in data.api_data.columns %}
        <td>{{ row[colname]|replace('\n', '<br/>') }}</td>
        {% endfor %}
    </tr>
    {% endif %}
    {% endfor %}
    
    </table>

<script language="javascript" type="text/javascript">
//<![CDATA[
    setFilterGrid("report_data");
//]]>
</script>
{% endblock %}