{% extends "base.html" %}

{% block content %}
<td align="center" valign="top" bgcolor="white" width="440"> 
	<table width="444" border="0" cellspacing="8" cellpadding="0"> 
		<tr><td span=3><ul>
  {% for town in towns %}
   {% if not town.name == 'Harborside' %}
   {% if not town.name == 'Sunset' %}
   {% if not town.name == 'Little Deer Isle' %}
   {% if not town.name == 'Sargentville' %}
        <li style="display:inline; list-style:none;"><a href="{% url di-phonebook-town town.slug %}" >{{town.name}}</a> {% if not forloop.last %}| {%endif%}</li>
  {% endif %}{% endif %}{% endif%}{%endif%}
  {% endfor %}

  </ul>	
  <h2 align="center">{{town.name}}</h2>
</td></tr>	
		<tr><th>Entry</th><th>Number</th></tr>
		{% for entry in entries %}
		<tr> 
			<td>{{entry.entry}}</td><td>{{entry.phone}}</td>
		</tr>
		{% endfor %}
	</table>
  
<p><a href="{% url di-index %}">Back to directory</a></p>  
	</td>
</tr>
{% endblock %}
