Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Commit

Permalink
only display credit markup when credit field is filled
Browse files Browse the repository at this point in the history
  • Loading branch information
drinks committed Feb 15, 2012
1 parent ed1822a commit a0693b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion one80/committees/templates/committees/hearing_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2 class="withTip">Images for <span id="hearing_indiv-name">{{ hearing.title }}
<li>
<a href="{% url photo_detail hearing.slug photo.pk %}">
<img src="{% getsize photo 243 161 %}" alt="a photo of the audience at {{ hearing.title }}" class="grid_thumbnails" />
<small class="photo-credit">Photo: {{ photo.credit|markdown|striptags }}</small>
{% if photo.credit %}<small class="photo-credit">Photo: {{ photo.credit|markdown|striptags }}</small>{% endif %}
<span class="grid_tagged">Tagged: <span class="nmbr_tagged">{% templatetag openbrace %}{{ photo.annotations.published.count }}{% templatetag closebrace %}</span></span>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion one80/committees/templates/committees/hearing_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 class="withTip">Choose a Hearing</h2>
{% for photo in hearing.photos.all %}
<span class="photo">
<img src="{% getsize photo 243 161 %}" alt="a photo of the audience at {{ hearing.title }}" />
<small class="photo-credit">Photo: {{ photo.credit|markdown|striptags }}</small>
{% if photo.credit %}<small class="photo-credit">Photo: {{ photo.credit|markdown|striptags }}</small>{% endif %}
</span>
{% endfor %}
</a>
Expand Down
2 changes: 1 addition & 1 deletion one80/photos/templates/photos/photo_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2 class="withTip">{{ hearing.title }}</h2>
</div>
<img id="img_gallery" src="{{ fullsize.image.url }}" alt="a photograph showing audience members of {{ hearing.title }}">
</div>
<small class="photo-credit">Photo: {{ fullsize.photo.credit|markdown }}</small>
{% if fullsize.photo.credit %}<small class="photo-credit">Photo: {{ fullsize.photo.credit|markdown }}</small>{% endif %}
{% comment %}
{% if request.user.is_anonymous %}
<a href="{% url login %}" class="image-annotate-add">Login to tag this photo</a>
Expand Down
2 changes: 1 addition & 1 deletion one80/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3>Help Now by Tagging the Recent Photos Below</h3>
{% for photo in hearing.photos.all %}
<span class="photo">
<img src="{% getsize photo 250 166 %}" width="250" height="166" alt="Photo of the audience at '{{ hearing.title }}'" />
<small class="photo-credit">Photo: {{ photo.credit|markdown|striptags }}</small>
{% if photo.credit %}<small class="photo-credit">Photo: {{ photo.credit|markdown|striptags }}</small>{% endif %}
</span>
{% endfor %}
</a>
Expand Down

0 comments on commit a0693b7

Please sign in to comment.