{% extends "newsroom/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.web_hed}} | {% for e in object.edition_set.all %}{% if forloop.first %}{{e.paper}}{%endif%}{%endfor%} | Penobscot Bay Press {% 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="{{MEDIA_URL}}images/headers/newsfeature542.gif" alt="News Feature" height="32" width="542" border="0"><br>
      <p><SPAN Class="teaser">{{object.dateline}}</SPAN><br />
      <span class="paper">{% for e in object.edition_set.all %}{% if forloop.first %}<em>{{e.paper}}</em>, {{e.published_on|date:"F j, Y"}}{% endif %}{% endfor %}</span><br/>
      {% if object.kicker %}<SPAN Class="kicker">{{object.kicker}}<br /></SPAN>{% endif %}
    <SPAN Class="headline">{{object.web_hed|typogrify}}</SPAN>
    {% if object.subhed %}<br/><SPAN Class="subhed">{{object.subhed}}</SPAN><br />{% endif %}
    </p>

  {% if 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.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.archivegroup_set.all or object.attached_document.all %}
    </div>
  {% endif %}
  </div>

  <div style="padding-left:12px; padding-right:12px">
    <p style="width:250px; clear:bottom; padding-bottom:1em;">{% if object.author %}<span style="float:left">by {{ object.author.name|upper }}, {{object.author.title|upper}}, {{object.author.organization.title|upper}}</span><br/>{% endif %}</p>
    {{object.body|markdown|typogrify|urlize}}
    {% if object.citizen_authors.all %}
    {% for a in object.citizen_authors.all %}
    <p>{{a}}<br />
       {{a.town.name}}</p>
    {% endfor %}
    {% endif %}
    
    <p><span class="kicker"><strong>Share this page</strong></span>
<!-- AddThis Button BEGIN -->
<div style="text-align:left; clear:both"><hr size="1">
<p><span class="kicker"><strong>Share this page</strong></span>
<div>
<a class="addthis_button_facebook_like" fb:like:layout="standard"></a>
</div><br>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_twitter" tw:count="none"></a> &nbsp;
<a class="addthis_button_email"></a> &nbsp;
<a class="addthis_button_print"></a> &nbsp;
<a class="addthis_button_pinterest_share" style="cursor:pointer"></a> &nbsp;
<a class="addthis_button_reddit"></a> &nbsp;
<a class="addthis_button_gmail"></a> &nbsp;
<a class="addthis_button_tumblr"></a> &nbsp;
<a class="addthis_button_compact"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
<hr size="1"></div>
<!-- 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 %}
