{% load i18n %}

{% if pages %}
	<font face="Arial" size="3"><b>
	<font color=#000000>
	{# named area for jump links #}
	<a name="pages" id="pages"></a>
	{% if start_dt %}
		{% blocktrans with start_dt|date:"M d, Y" as startdate and end_dt|date:"M d, Y" as enddate %}Pages Updated for {{ startdate }} to {{ enddate }}{% endblocktrans %}
	{% else %}
		{% trans "All Pages" %}
	{% endif %}
	
	</font></b></font>							   
							   
	{% for page in pages %}
		
		{# leverage the functions in the object #}
				
		<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="body_copy">
		<tr><td>&nbsp;</td></tr>
		<tr><td align="left" valign="top">
		<a href="{{ SITE_GLOBAL_SITEURL }}{% url page page.slug %}" >
		<font face="Arial" size="2"><b> {{page.title}}
		</b></font></a>
		
		{# show member icon if not allowanonymousview/allowsiteuserview #}
		{% if not page.allow_anonymous_view and page.allow_user_view   %}
			&nbsp;&nbsp;<img src="{{ SITE_GLOBAL_SITEURL }}/static/images/icons/member.gif" height="13" width="15" 
			border="0" alt="Member View Only">
		{% endif %}
		</td></tr>
		
		{% if not simplified  %}
			<tr><td align="left"><font face="Arial" size="2" color="#000000">
			<b>{% trans "Updated:" %}</b> {{ page.update_dt|date:"l d-M-Y h:i A" }} </font> 
			</td></tr>
		{% endif %}
		
		<tr><td align="left" valign="top"><div>
		<font face="Arial" size="2" color="#000000">

		{{page.content|striptags|truncatewords:60 }}
		 <a href="{{ SITE_GLOBAL_SITEURL }}{% url page page.slug %}">[More Info]</a>
		</font>
		
		{#  posted by #}
		{% if not simplified  %}
			<font face="Arial" size="2" color="#000000">
			<br><b>{% blocktrans with page.owner.first_name as pagefirst and page.owner.last_name as pagelast %}Posted by</b>: 
			{{ pagefirst }} {{ pagelast }}{% endblocktrans %}
			</font>
		{% endif %}
		<br>

		</div></td></tr>
		</table>

	{% endfor %}
	<hr>
{% endif %}