Parcourir la source

Remove photo width sniffing

Colin Powell il y a 5 ans
Parent
commit
2dc6dc0250
1 fichiers modifiés avec 0 ajouts et 29 suppressions
  1. 0 29
      pbp_com/templates/darkroom/gallery_detail.html

+ 0 - 29
pbp_com/templates/darkroom/gallery_detail.html

@@ -29,7 +29,6 @@
 
 	<div style="padding-left:12px; width:756px">
 	{% 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">
 			<img src="{{photo.get_detail_url}}" alt="{{photo.title}}" order="0">
 		<div style="padding-top:15px">
@@ -54,34 +53,6 @@
 			{% endif %}
 		</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 %}
 	</div>
 </div>