{% extends 'layouts/layout_base.html' %}

{% load url from future %}
{% load extratags %}

{% block body_content %}
<div class="panel panel-default">
    <div class="panel-heading"><i class="glyphicon glyphicon-globe"></i> Providers</div>
    <div class="panel-body">
        <a title="Create a Bug Provider" href="{% url 'crashmanager:bugprovidercreate' %}" class="btn btn-success">Add Provider</a>
    </div>
    {% if providers %}
    <table class="table table-condensed table-hover table-bordered table-db">
        <thead>
        <tr>
            <th style="width: 50px;">Name</th>
            <th style="width: 50px;">Host Name</th>
            <th style="width: 150px;">URL Template</th>
            <th style="width: 50px;"># of bugs associated</th>
        </tr>
        </thead>
        <tbody>
        {% for entry in providers %}
        <tr class="{% cycle odd,even %}">
            <td><a title="View Bug Provider" href="{% url 'crashmanager:bugproviderview' entry.pk %}">{{ entry.classname|escape }}</a></td>
            <td>{{ entry.hostname|escape }}</td>
            <td>{{ entry.urlTemplate|escape }}</td>
            <td>{{ entry.size|escape }}</td>
        </tr>
        {% endfor %}
        </tbody>
    </table>
    {% else %}
    <p>No bug providers found.</p>
    {% endif %}
    </div>
</div>
{% endblock body_content %}

{% extends 'layouts/layout_base.html' %}

{% load url from future %}
{% load extratags %}

{% block body_content %}
<div class="panel panel-default">
    <div class="panel-heading"><i class="glyphicon glyphicon-globe"></i> Providers</div>
    <div class="panel-body">
        <a title="Create a Bug Provider" href="{% url 'crashmanager:bugprovidercreate' %}" class="btn btn-success">Add Provider</a>
        <br/><br/>
    {% if providers %}
    <table class="table table-condensed table-hover table-bordered table-db">
        <thead>
        <tr>
            <th style="width: 50px;">Name</th>
            <th style="width: 50px;">Host Name</th>
            <th style="width: 150px;">URL Template</th>
            <th style="width: 50px;"># of bugs associated</th>
        </tr>
        </thead>
        <tbody>
        {% for entry in providers %}
        <tr class="{% cycle odd,even %}">
            <td><a title="View Bug Provider" href="{% url 'crashmanager:bugproviderview' entry.pk %}">{{ entry.classname|escape }}</a></td>
            <td>{{ entry.hostname|escape }}</td>
            <td>{{ entry.urlTemplate|escape }}</td>
            <td>{{ entry.size|escape }}</td>
        </tr>
        {% endfor %}
        </tbody>
    </table>
    {% else %}
    <p>No bug providers found.</p>
    {% endif %}
    </div>
</div>
{% endblock body_content %}

Fix div balance in the bug-provider template.
Fix div balance in the bug-provider template.

This is only observable before any bug-providers are added.
