{% extends "base.html" %}
{% block meta_keywords %}{% for tag in object.tags.all %}{{tag}}, {%endfor %}{% endblock %}
{% block meta_title %}{{object.web_hed}} {% for e in object.edition_set.all %}{%if forloop.first %}{% if e.paper == "Compass" %}| {{e.paper}}{%endif%}{%endif%}{%endfor%}  | Penobscot Bay Press{% endblock %}
{% block meta_description %}{{object.summary}}{% endblock %}
{% if object.lead_photo %}
{% block rel-img %}{{object.lead_photo.get_square_url}}{% endblock %}
{% endif %}

{% block title %}{{object}} | Feature | The Weekly Packet{% endblock %}

{% block content %}
{% load markup typogrify humanize %}
<td valign="top" bgcolor="white" width="565" colspan="2">
  <div style="padding-left:12px; padding-right:12px; padding-top:12px">
  <img src="{{object.graphic.url}}" alt="Remember When" height="60" width="468" border="0"><br>
  <h1>REMEMBER WHEN<br>
  <span class="subhed">Excerpts from <em>The Weekly Packet</em>, {% for s in object.historicarticle_set.all|dictsort:"story.published_on" %}{% if forloop.first %}{{s.story.published_on|date:"F j, Y"}}{% endif %}{% if forloop.last %} &mdash; {{s.story.published_on|date:"F j, Y"}}{% endif %}{% endfor %}</span></h1>
    </p>

  <ol>
  {% for s in object.historicarticle_set.all|dictsort:"story.published_on" %}
	<li><a href="{{s.get_absolute_url}}" alt="{{s}}">{{s}}</a> <br /><em>The Weekly Packet</em>, {{s.story.published_on|date:"F j, Y"}}</li>
  {% endfor %}
  </ol>
  {% if object.lead_photo or object.archivesection_set.all or object.attached_documents.all %}
  <div style="float:right; width:250px; padding-left:25px">
  {% endif %} 

    {% if object.archivesection_set.all %}
    <h4>
    {% for a in object.archivesection_set.all %}
    {% if not forloop.first %}<br/><br/>{% endif %}
    {% if a.lead_image %}
    <img src="{{a.lead_image.url}}" width="250px" alt="{{a}}"/><br/>
    {% endif %}
    <a href="{{a.get_absolute_url}}">Click here to see the full {{a.title}}.</a>
    {% endfor %}
	<br/>
    </h4>
    {% endif %}

  {% if object.lead_photo %}
	<p>{% if object.lead_photo.gallery_photos.all %}
	{% for gallery in object.lead_photo.gallery_photos.all %}
	{% if forloop.first %}<a href="{{gallery.get_absolute_url}}" alt="{{object.lead_photo.title}}" class="cutline">{% endif %}
	{% endfor %}
	{% else %}
	<a href="{{object.lead_photo.get_absolute_url}}" alt="{{object.lead_photo.title}}" class="cutline">
	{% endif %}
        <img src="{{object.lead_photo.get_square_url}}" alt="{{object.lead_photo.title}}" width="250" border="0"><br>
        {{object.lead_photo.description|urlize|textile|typogrify}}</a>
	{% if object.lead_photo.photographer %}
	By {{object.lead_photo.photographer}}<br/>
	{% else %}
	{% if object.lead_photo.courtesy %}
	Photo courtesy {{object.lead_photo.courtesy}}<br/>
	{% endif %}
	{% if object.lead_photo.file_photo %}
	Penobscot Bay Press file photo<br/>
	{% endif %}
	{% endif %}
  </p>
  {% if object.attached_gallery.all %}
  {% for rel_gallery in object.attached_gallery.all %}
  <a class="gallery_link" href="{{rel_gallery.gallery.get_absolute_url}}" alt="{{rel_gallery}}">View the gallery of photos</a><br>
  {% for photo in rel_gallery.gallery.photos.all %}
  {% ifnotequal photo object.lead_photo %}
      <p><a class="cutline" href="{{rel_agllery.gallery.get_absolute_url}}" alt="{{photo.title}}" class="cutline"><img src="{{photo.get_square_url}}" alt="{{photo.title}}" width="250" border="0"><br>
          {{photo.description|urlize|textile|typogrify}}</a>
	{% if photo.photographer != None %}
	By {{photo.photographer}}<br/>
	{% endif %}
	{% if photo.courtesy %}
	Photo courtesy {{photo.courtesy}}<br/>
	{% endif %}
	{% if photo.file_photo %}
	Penobscot Bay Press file photo<br/>
	{% endif %}
    </p>
  {% endifnotequal %}
  {% endfor %}
  {% endfor %}
  {% endif %}
  {% endif %}

  {% if object.attached_documents.all %}
  <h3>Documents</h3>
  {% for doc in object.attached_documents.all %}
  <a href="{{doc.document.get_absolute_url}}" alt="{{doc.document}}">
  <img src="{{doc.document.preview.path}}" alt="{{doc.document}}">
  {{doc.document.description}}
  {% endfor %}
  {% endif %}

  {% if object.lead_photo or object.archivegroup_set.all or object.attached_document.all %}
    </div>
  {% endif %}
  </div>

  <div style="padding-left:12px; padding-right:12px">
      <p style="">{% if object.authors.all %}<span style="float:left">by {% for author in object.authors.all %}{{ author.name }}{% if not forloop.last %}&{% endif %}{% endfor %}</span><br/>{% endif %}
    {{object.body|urlize|markdown|typogrify}} 
    
    </p>
    <p><!--CODE HERE FOR BANNER AD WITH LINK 468x90 sized --></p>
    <p><span class="kicker"><strong>Share this page</strong></span>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=penbaypress" class="addthis_button_compact">Share</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_facebook_like" />
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_print"></a>
<a class="addthis_button_googlebuzz"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=penbaypress"></script>
<!-- AddThis Button END -->
</p>
    <p><a class="return" href="{% url nr-index %}">Return to the Penobscot Bay Press home page.</a></p>
    <hr size="1">
  </div>
</td>

<tr> </tr>
{% endblock %}

