{% load i18n %}
{% load sentry_helpers %}

{% for interface, interface_html in interface_list %}
    <div id="{{ interface.get_slug }}">
        {{ interface_html }}
    </div>
{% endfor %}

{% if json_data %}
    <div id="extra">
        <div class="page-header">
            <h2>{% trans "Additional Data" %}</h2>
        </div>
        <table class="table table-striped vars">
            {% for k, v in json_data.iteritems|as_sorted %}
                <tr>
                    <th class="key">{{ k }}</th>
                    <td class="values{% if not v|is_dict %} code{% endif %}">
                        {% with value=v threshold=5 template="sentry/partial/_event_details_code_values.html" %}
                            {% include template %}
                        {% endwith %}
                    </td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endif %}

{% if version_data %}
    <div id="versions">
        <div class="page-header">
            <h2>{% trans "Package Versions" %}</h2>
        </div>
        <table class="table table-striped">
            {% for k, v in version_data.iteritems|as_sorted %}
                <tr>
                    <th class="key">{{ k }}</th>
                    <td class="values"><code>{{ v }}</code></td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endif %}
