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

{% load url from future %}

{% block body_content %}
<div class="panel panel-default">
	<div class="panel-heading"><i class="glyphicon glyphicon-scale"></i> Instance Pools</div>
	<div class="panel-body">
            <p>
		{% if isSearch %} 
			Your search matched {{ poollist|length }} instance pools:
		{% else %}
			Displaying all {{ poollist|length }} instance pools:
		{% endif %}
	    </p>
    </div>
    <table class="table table-condensed table-hover table-bordered">
        <thead>
            <tr>
                <th style="width: 25px;">ID</th>
                <th style="width: 100px;">Name</th>
                <th style="width: 25px;"># of Instances</th>
                <th style="width: 50px;">Status</th>
            </tr>
        </thead>
        <tbody>
            {% for pool in poollist %}
            <tr class="{% cycle odd,even %}">
                <td><a href="{% url 'ec2spotmanager:poolview' pool.pk %}">{{ pool.pk }} </a></td>
                <td>{{ pool.config.name }}</td>
                <td>{{ pool.size }}</td>
		<td>{% for msg in pool.msgs %}
			<div>{{ msg }}</div>
		</td>
            </tr>{% endfor %}
        </tbody>
    </table>
</div>
{% endblock body_content %}

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

{% load url from future %}

{% block body_content %}
<div class="panel panel-default">
	<div class="panel-heading"><i class="glyphicon glyphicon-scale"></i> Instance Pools</div>
	<div class="panel-body">
            <p>
		{% if isSearch %} 
			Your search matched {{ poollist|length }} instance pools:
		{% else %}
			Displaying all {{ poollist|length }} instance pools:
		{% endif %}
	    </p>
    </div>
    <table class="table table-condensed table-hover table-bordered">
        <thead>
            <tr>
                <th style="width: 25px;">ID</th>
                <th style="width: 100px;">Name</th>
                <th style="width: 25px;"># of Instances</th>
                <th style="width: 50px;">Status</th>
            </tr>
        </thead>
        <tbody>
            {% for pool in poollist %}
            <tr class="{% cycle odd,even %}">
                <td><a href="{% url 'ec2spotmanager:poolview' pool.pk %}">{{ pool.pk }} </a></td>
                <td>{{ pool.config.name }}</td>
                <td>{{ pool.size }}</td>
		<td>{% for msg in pool.msgs %}
			<div>{{ msg }}</div>
            	    {% endfor %}
		</td>
            </tr>{% endfor %}
        </tbody>
    </table>
</div>
{% endblock body_content %}

Fix missing endfor in template
Fix missing endfor in template
