|
@@ -29,7 +29,6 @@
|
|
|
|
|
|
<div style="padding-left:12px; width:756px">
|
|
<div style="padding-left:12px; width:756px">
|
|
{% for photo in object.photos.all|dictsortreversed:"weight" %}
|
|
{% for photo in object.photos.all|dictsortreversed:"weight" %}
|
|
- {% if photo.image.width >= photo.image.height %}
|
|
|
|
<div style="float:left; padding-right:14px; padding-bottom:12px; width:100px; display:table; clear:both">
|
|
<div style="float:left; padding-right:14px; padding-bottom:12px; width:100px; display:table; clear:both">
|
|
<img src="{{photo.get_detail_url}}" alt="{{photo.title}}" order="0">
|
|
<img src="{{photo.get_detail_url}}" alt="{{photo.title}}" order="0">
|
|
<div style="padding-top:15px">
|
|
<div style="padding-top:15px">
|
|
@@ -54,34 +53,6 @@
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- {% endif %}
|
|
|
|
-
|
|
|
|
- {% if photo.image.width < photo.image.height %}
|
|
|
|
- <div style="float:left; padding-right:14px; padding-bottom:12px; clear:both">
|
|
|
|
- <img src="{{photo.get_detail_url}}" alt="{{photo.title}}" order="0">
|
|
|
|
- </div>
|
|
|
|
- <div style="float:left; padding-top:150px; width:225px">
|
|
|
|
- {% load markup typogrify humanize %}
|
|
|
|
- <div class="newcutline"><p class="newcuthead">{{photo.title}}</p></div>
|
|
|
|
- <div class="newcutline">{{photo.description|urlize|markdown|typogrify}}</div>
|
|
|
|
- {% if photo.photographer %}
|
|
|
|
- <p class="photobyline">Photo by {{photo.photographer}}</p>
|
|
|
|
- {% endif %}
|
|
|
|
- {% if photo.courtesy %}
|
|
|
|
- <p class="photobyline">Photo courtesy of {{photo.courtesy}}</p>
|
|
|
|
- {% endif %}
|
|
|
|
- {% if photo.file_photo %}
|
|
|
|
- <p class="photobyline">Penobscot Bay Press file photo</p>
|
|
|
|
- {% endif %}
|
|
|
|
- {% if photo.story_set.all %}
|
|
|
|
- <p class="relatedstory" style="text-align:left">
|
|
|
|
- {% for s in photo.story_set.all %}
|
|
|
|
- <a href="{{s.get_absolute_url}}" alt="{{s}}">Related story</a><br>
|
|
|
|
- {% endfor %}
|
|
|
|
- </p>
|
|
|
|
- {% endif %}
|
|
|
|
- </div>
|
|
|
|
- {% endif %}
|
|
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|